Don't double unquote request URL
"%2525" was transformed to "%" instead of "%25".
This commit is contained in:
parent
dbaf58dbfe
commit
664fa71278
@ -313,8 +313,7 @@ class Application:
|
|||||||
self.logger.debug("Sanitized script name: %s", environ["SCRIPT_NAME"])
|
self.logger.debug("Sanitized script name: %s", environ["SCRIPT_NAME"])
|
||||||
base_prefix = environ["SCRIPT_NAME"]
|
base_prefix = environ["SCRIPT_NAME"]
|
||||||
# Sanitize request URI
|
# Sanitize request URI
|
||||||
environ["PATH_INFO"] = storage.sanitize_path(
|
environ["PATH_INFO"] = storage.sanitize_path(environ["PATH_INFO"])
|
||||||
unquote(environ["PATH_INFO"]))
|
|
||||||
self.logger.debug("Sanitized path: %s", environ["PATH_INFO"])
|
self.logger.debug("Sanitized path: %s", environ["PATH_INFO"])
|
||||||
path = environ["PATH_INFO"]
|
path = environ["PATH_INFO"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user