Skip to content

Commit 1c8be64

Browse files
robertylewisshowell
authored andcommitted
escape question marks in urls
1 parent ec0d3a5 commit 1c8be64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def archive_message_url(site_url, html_root, sanitized_stream_name, sanitized_to
5757
# remove non-alnum ascii symbols from string
5858
def sanitize(s):
5959
return "".join(filter(lambda x:x.isalnum or x==' ', s.encode('ascii', 'ignore')\
60-
.decode('utf-8'))).replace(' ','-')
60+
.decode('utf-8'))).replace(' ','-').replace('?','%3F')
6161

6262
# create a unique sanitized identifier for a topic
6363
def sanitize_topic(topic_name):

0 commit comments

Comments
 (0)