D1076: hgweb: more native string treatment in query string parsing
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Oct 14 17:03:25 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8e5132ece156: hgweb: more native string treatment in query string parsing (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1076?vs=2740&id=2751
REVISION DETAIL
https://phab.mercurial-scm.org/D1076
AFFECTED FILES
mercurial/hgweb/server.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -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):
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list