# HG changeset patch # User Augie Fackler # Date 2017-10-05 18:29:51 # Node ID 8e5132ece156d0fcbc8749a5e909f3a5abd74043 # Parent 375c8debe336039362d1e11c2412a8846f182e80 hgweb: more native string treatment in query string parsing Differential Revision: https://phab.mercurial-scm.org/D1076 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 @@ def _splitURI(uri): 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):