Unquote hashtag

main
Bob Mottram 2020-11-25 11:22:36 +00:00
parent 4227ab94de
commit 3f119d2e1f
1 changed files with 1 additions and 0 deletions

View File

@ -4930,6 +4930,7 @@ class PubServer(BaseHTTPRequestHandler):
hashtag = path.split('/tags/')[1]
if '?page=' in hashtag:
hashtag = hashtag.split('?page=')[0]
hashtag = urllib.parse.unquote_plus(hashtag)
if isBlockedHashtag(baseDir, hashtag):
print('BLOCK: hashtag #' + hashtag)
msg = htmlHashtagBlocked(self.server.cssCache, baseDir,