diff options
| author | Joren Van Onder <jov@odoo.com> | 2017-06-15 14:15:47 -0700 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2017-06-15 14:19:30 -0700 |
| commit | b31435ab5df7eddd1030e59f2fb4276ed6383d98 (patch) | |
| tree | a64418a5c2bc4aec1994ef2cda9721662ae14dcd /odoo/http.py | |
| parent | 41e2a7de777f05848f5fbdf5d09613b965a87055 (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.py | 2 |
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 |
