hgweb: more native string treatment in query string parsing
authorAugie Fackler <augie@google.com>
Thu, 05 Oct 2017 14:29:51 -0400
changeset 34700 8e5132ece156
parent 34699 375c8debe336
child 34701 6db536bed7ec
hgweb: more native string treatment in query string parsing Differential Revision: https://phab.mercurial-scm.org/D1076
mercurial/hgweb/server.py
--- 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):