summaryrefslogtreecommitdiff
path: root/odoo/http.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-05-18 18:54:26 +0200
committerChristophe Simonis <chs@odoo.com>2018-05-18 18:54:26 +0200
commit021d0e6a98bb9baa0d554d4e8b5717c7893a7641 (patch)
tree8d22beaa1ef2c4cb3c14896645554f646f0ddc9d /odoo/http.py
parent40e74240e83f680bbdd9624c14edef2201d96d17 (diff)
parentcabe0951af2e0a0fcad47fa7a9fe2ffa5e8701cf (diff)
[MERGE] forward port branch saas-14 up to cabe0951af2
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")