From 664fa712783af7508edbfdc5d73cbbe1c731db94 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 4 Sep 2016 20:16:23 +0200 Subject: [PATCH] Don't double unquote request URL "%2525" was transformed to "%" instead of "%25". --- radicale/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 693a0f1..29d67a2 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -313,8 +313,7 @@ class Application: self.logger.debug("Sanitized script name: %s", environ["SCRIPT_NAME"]) base_prefix = environ["SCRIPT_NAME"] # Sanitize request URI - environ["PATH_INFO"] = storage.sanitize_path( - unquote(environ["PATH_INFO"])) + environ["PATH_INFO"] = storage.sanitize_path(environ["PATH_INFO"]) self.logger.debug("Sanitized path: %s", environ["PATH_INFO"]) path = environ["PATH_INFO"]