[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
This commit is contained in:
Simon Lejeune 2014-03-21 13:01:33 +01:00
parent e06cefb4be
commit 6b5986e34d
1 changed files with 1 additions and 1 deletions

View File

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