summaryrefslogtreecommitdiff
path: root/odoo/http.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-09 19:33:32 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-09 19:33:32 +0200
commit7717f082c08d6121cd7d2478e14ff855afd6d384 (patch)
tree5b26650048ba249f021792c1d4cb5900e7f0f7a4 /odoo/http.py
parentd3df57bf906b3ff1964d3c96ea6b45950858099c (diff)
parentaf35aea6b0d6ff52126141ab0e3754a0427553fc (diff)
[MERGE] forward port branch saas-11.3 up to af35aea6b0d
Diffstat (limited to 'odoo/http.py')
-rw-r--r--odoo/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/http.py b/odoo/http.py
index 73098004cc4..4e972d8081e 100644
--- a/odoo/http.py
+++ b/odoo/http.py
@@ -1498,6 +1498,7 @@ def db_filter(dbs, httprequest=None):
if d == "www" and r:
d = r.partition('.')[0]
if odoo.tools.config['dbfilter']:
+ d, h = re.escape(d), re.escape(h)
r = odoo.tools.config['dbfilter'].replace('%h', h).replace('%d', d)
dbs = [i for i in dbs if re.match(r, i)]
elif odoo.tools.config['db_name']: