From b41a9877679130bb94fb0e53b153106b3cec4bb9 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Thu, 15 Jun 2017 14:15:47 -0700 Subject: [PATCH] [FIX] http: fix forward-port of eaa3682bb609dc69a5499f2c223da479d0d9697b Forward-ported at 1b50c829ef383705647d0c2df7c89e9051ec40fb. b4429c2a91889bf60b56e0c7909c844d357363f7 changed the import to allow for either urllib or urlparse. --- odoo/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" % url