diff options
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") |
