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 14:19:30 -0700
commitb31435ab5df7eddd1030e59f2fb4276ed6383d98 (patch)
treea64418a5c2bc4aec1994ef2cda9721662ae14dcd /odoo/http.py
parent41e2a7de777f05848f5fbdf5d09613b965a87055 (diff)
[FIX] http: replace forward-ported urlparse with werkzeug.urls
Introduced by forward-port of eaa3682bb609dc69a5499f2c223da479d0d9697b at ed2ddeccdfaac46acb4d4bfbdac5f1b570f0829c. At 01e35141479b8dfc4a390518f89fc52e7cec5396 urlparse was replaced with werkzeug.urls.
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 622a7b47fbd..03c2bda31b2 100644
--- a/odoo/http.py
+++ b/odoo/http.py
@@ -162,7 +162,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 urls.url_parse(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