[FIX] http: avoid corruption with domain name
Domain names may have been interpreted as a regex by mistake
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user