File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -342,6 +342,10 @@ def testReqURIs(self):
342342 self .checkReqURI ("http://127.0.0.1/sp%C3%A4m" , SCRIPT_NAME = "/späm" )
343343 self .checkReqURI ("http://127.0.0.1/spammity/spam" ,
344344 SCRIPT_NAME = "/spammity" , PATH_INFO = "/spam" )
345+ self .checkReqURI ("http://127.0.0.1/spammity/spam;ham" ,
346+ SCRIPT_NAME = "/spammity" , PATH_INFO = "/spam;ham" )
347+ self .checkReqURI ("http://127.0.0.1/spammity/spam;cookie=1234,5678" ,
348+ SCRIPT_NAME = "/spammity" , PATH_INFO = "/spam;cookie=1234,5678" )
345349 self .checkReqURI ("http://127.0.0.1/spammity/spam?say=ni" ,
346350 SCRIPT_NAME = "/spammity" , PATH_INFO = "/spam" ,QUERY_STRING = "say=ni" )
347351 self .checkReqURI ("http://127.0.0.1/spammity/spam" , 0 ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def request_uri(environ, include_query=True):
6464 """Return the full request URI, optionally including the query string"""
6565 url = application_uri (environ )
6666 from urllib .parse import quote
67- path_info = quote (environ .get ('PATH_INFO' ,'' ))
67+ path_info = quote (environ .get ('PATH_INFO' ,'' ), safe = '/;=,' )
6868 if not environ .get ('SCRIPT_NAME' ):
6969 url += path_info [1 :]
7070 else :
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ Core and Builtins
2020Library
2121-------
2222
23+ - Issue 10753 - Characters ';','=' and ',' in the PATH_INFO environment
24+ variable won't be quoted when the URI is constructed by the wsgiref.util 's
25+ request_uri method. According to RFC 3986, these characters can be a part of
26+ params in PATH component of URI and need not be quoted.
27+
2328- Issue 10738: Fix webbrowser.Opera.raise_opts
2429
2530- Issue 9824: SimpleCookie now encodes , and ; in values to cater to how
You can’t perform that action at this time.
0 commit comments