hgweb: more native string treatment in query string parsing
Differential Revision: https://phab.mercurial-scm.org/D1076
--- a/mercurial/hgweb/server.py Sat Oct 14 14:07:39 2017 -0400
+++ b/mercurial/hgweb/server.py Thu Oct 05 14:29:51 2017 -0400
@@ -37,10 +37,10 @@
Just like CGI environment, the path is unquoted, the query is
not.
"""
- if '?' in uri:
- path, query = uri.split('?', 1)
+ if r'?' in uri:
+ path, query = uri.split(r'?', 1)
else:
- path, query = uri, ''
+ path, query = uri, r''
return urlreq.unquote(path), query
class _error_logger(object):