From 6b5986e34d614f47dd6bdf4f8486ced05aadb54f Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Fri, 21 Mar 2014 13:01:33 +0100 Subject: [PATCH] [FIX] ir_http website postprocess args: do not redirect if the only difference between the url and the post-processed url is the url-enconding of some characters bzr revid: sle@openerp.com-20140321120133-0k1zjsrtgwrw6oon --- addons/website/models/ir_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py index 47c0853d6be..1833ce102db 100644 --- a/addons/website/models/ir_http.py +++ b/addons/website/models/ir_http.py @@ -91,7 +91,7 @@ class ir_http(orm.AbstractModel): assert path is not None except Exception: return self._handle_exception(werkzeug.exceptions.NotFound()) - if path != request.httprequest.path: + if path != werkzeug.url_quote(request.httprequest.path): return werkzeug.utils.redirect(path) def _handle_exception(self, exception=None, code=500):