From b31435ab5df7eddd1030e59f2fb4276ed6383d98 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Thu, 15 Jun 2017 14:15:47 -0700 Subject: [PATCH] [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. --- odoo/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" % url