[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:
parent
e06cefb4be
commit
6b5986e34d
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue