diff options
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 1 |
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']: |
