diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-05-18 16:19:21 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-05-18 16:19:21 +0200 |
| commit | bfda65d894bb8ecc3e70755f26725bec1bca1d5e (patch) | |
| tree | f5bd9e2db3450bc5dd2ef6c7a884d31faf632b2a /odoo/http.py | |
| parent | c60b22335be6358307facbe665bbdb3d7f8a435e (diff) | |
| parent | 612fd33fb136d41cad6d9f9a10e52fdc6556533d (diff) | |
[MERGE] forward port branch 9.0 up to 612fd33fb13
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 1 |
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") |
