# HG changeset patch # User Augie Fackler # Date 1507228191 14400 # Node ID 8e5132ece156d0fcbc8749a5e909f3a5abd74043 # Parent 375c8debe336039362d1e11c2412a8846f182e80 hgweb: more native string treatment in query string parsing Differential Revision: https://phab.mercurial-scm.org/D1076 diff -r 375c8debe336 -r 8e5132ece156 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):