summaryrefslogtreecommitdiff
path: root/odoo/http.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-05-18 18:53:56 +0200
committerChristophe Simonis <chs@odoo.com>2018-05-18 18:53:56 +0200
commitcabe0951af2e0a0fcad47fa7a9fe2ffa5e8701cf (patch)
tree4932769edceb7c93eeb15ded48937acaea5bb046 /odoo/http.py
parenta1a03792b6fb7a029a805976512f13ed13c2c6b9 (diff)
parent9001a75f23c014e744fc1853190297eed4c47438 (diff)
[MERGE] forward port branch 10.0 up to 9001a75f23c
Diffstat (limited to 'odoo/http.py')
-rw-r--r--odoo/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/http.py b/odoo/http.py
index a9e9e8cf9ed..84298c20a63 100644
--- a/odoo/http.py
+++ b/odoo/http.py
@@ -163,6 +163,7 @@ def redirect_with_hash(url, code=303):
# See extensive test page at http://greenbytes.de/tech/tc/httpredirects/
if request.httprequest.user_agent.browser in ('firefox',):
return werkzeug.utils.redirect(url, code)
+ url = url.strip()
if urlparse.urlparse(url, scheme='http').scheme not in ('http', 'https'):
url = 'http://' + url
url = url.replace("'", "%27").replace("<", "%3C")