Patchwork D1076: hgweb: more native string treatment in query string parsing

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2017, 9:03 p.m.
Message ID <be5e2fe852f679f04684002ee135ce3a@localhost.localdomain>
Download mbox | patch
Permalink /patch/24918/
State Not Applicable
Headers show

Comments

phabricator - Oct. 14, 2017, 9:03 p.m.
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




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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):