mirror of https://gitlab.com/bashrc2/epicyon
form encoding
parent
512d1811c5
commit
ef4c45932b
|
@ -3019,7 +3019,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
editor = None
|
editor = None
|
||||||
if nickname:
|
if nickname:
|
||||||
editor = isEditor(baseDir, nickname)
|
editor = isEditor(baseDir, nickname)
|
||||||
if not hashtag or not nickname or not editor:
|
if not hashtag or not editor:
|
||||||
if callingDomain.endswith('.onion') and \
|
if callingDomain.endswith('.onion') and \
|
||||||
onionDomain:
|
onionDomain:
|
||||||
actorStr = \
|
actorStr = \
|
||||||
|
|
|
@ -676,13 +676,11 @@ def htmlHashtagSearch(cssCache: {},
|
||||||
if isEditor(baseDir, nickname):
|
if isEditor(baseDir, nickname):
|
||||||
category = getHashtagCategory(baseDir, hashtag)
|
category = getHashtagCategory(baseDir, hashtag)
|
||||||
hashtagSearchForm += '<div class="hashtagCategoryContainer">\n'
|
hashtagSearchForm += '<div class="hashtagCategoryContainer">\n'
|
||||||
hashtagSearchForm += ' <form method="POST" action="' + \
|
hashtagSearchForm += ' <form enctype="multipart/form-data" ' + \
|
||||||
|
'method="POST" accept-charset="UTF-8" action="' + \
|
||||||
'/users/' + nickname + '/tags/' + hashtag + \
|
'/users/' + nickname + '/tags/' + hashtag + \
|
||||||
'/sethashtagcategory">\n'
|
'/sethashtagcategory">\n'
|
||||||
hashtagSearchForm += ' <center>\n'
|
hashtagSearchForm += ' <center>\n'
|
||||||
hashtagSearchForm += \
|
|
||||||
' <input type="hidden" name="hashtagName" value="' + \
|
|
||||||
hashtag + '">\n'
|
|
||||||
hashtagSearchForm += translate['Category']
|
hashtagSearchForm += translate['Category']
|
||||||
hashtagSearchForm += \
|
hashtagSearchForm += \
|
||||||
' <input type="text" style="width: 20ch" ' + \
|
' <input type="text" style="width: 20ch" ' + \
|
||||||
|
|
Loading…
Reference in New Issue