summaryrefslogtreecommitdiff
path: root/odoo/http.py
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2017-06-15 14:15:47 -0700
committerJoren Van Onder <jov@odoo.com>2017-06-15 18:31:57 -0700
commitb41a9877679130bb94fb0e53b153106b3cec4bb9 (patch)
tree655ba19709a71a7b0512a8b947b2b045612e626d /odoo/http.py
parentacfebff88079054b5b76104ab0825159acf88e0e (diff)
[FIX] http: fix forward-port of eaa3682bb609dc69a5499f2c223da479d0d9697b
Forward-ported at 1b50c829ef383705647d0c2df7c89e9051ec40fb. b4429c2a91889bf60b56e0c7909c844d357363f7 changed the import to allow for either urllib or urlparse.
Diffstat (limited to 'odoo/http.py')
-rw-r--r--odoo/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/http.py b/odoo/http.py
index c32d0178b8a..338ebb30099 100644
--- a/odoo/http.py
+++ b/odoo/http.py
@@ -167,7 +167,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)
- if urlparse.urlparse(url, scheme='http').scheme not in ('http', 'https'):
+ if urlparse(url, scheme='http').scheme not in ('http', 'https'):
url = 'http://' + url
url = url.replace("'", "%27").replace("<", "%3C")
return "<html><head><script>window.location = '%s' + location.hash;</script></head></html>" % url