From afde870da4d2af0d9b40f907261d1ea5d48864d2 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 18 Jul 2018 10:32:42 +0200 Subject: [PATCH] [FIX] http: avoid corruption with domain name Domain names may have been interpreted as a regex by mistake --- openerp/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/http.py b/openerp/http.py index 1b717590943..ceeb58d1cdc 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1709,6 +1709,7 @@ def db_filter(dbs, httprequest=None): d, _, r = h.partition('.') if d == "www" and r: d = r.partition('.')[0] + d, h = re.escape(d), re.escape(h) r = openerp.tools.config['dbfilter'].replace('%h', h).replace('%d', d) dbs = [i for i in dbs if re.match(r, i)] return dbs