diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-05-29 17:34:43 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-05-29 17:34:43 +0200 |
| commit | f36e6917bd73a56dc0c7468b4849920df4088154 (patch) | |
| tree | b63d02ae3e5ffc0815de009407363e0cf906f547 /odoo/http.py | |
| parent | bc0173c2d58ac26d80cb2f483a95c0c13b047dab (diff) | |
| parent | 37eed7c509fb5846c89ef37046df4b3cab299719 (diff) | |
[MERGE] forward port branch saas-11.3 up to 37eed7c509f
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/http.py b/odoo/http.py index b1ebb9affd4..c66962d16d6 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -166,7 +166,7 @@ def redirect_with_hash(url, code=303): # FIXME: decide whether urls should be bytes or text, apparently # addons/website/controllers/main.py:91 calls this with a bytes url # but addons/web/controllers/main.py:481 uses text... (blows up on login) - url = pycompat.to_text(url) + url = pycompat.to_text(url).strip() if urls.url_parse(url, scheme='http').scheme not in ('http', 'https'): url = u'http://' + url url = url.replace("'", "%27").replace("<", "%3C") |
