mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
core: mark dbpath as safe for Postfix maps
When tests are using SQLite as database backend, the database name can contain '&' which is escaped if `dbname` is unsafe.
This commit is contained in:
committed by
Antoine Nguyen
parent
6868654416
commit
c0aedd04d5
@@ -79,7 +79,7 @@ class Command(BaseCommand):
|
||||
"""Return map file template."""
|
||||
tplcontent = MAP_FILE_TEMPLATE
|
||||
if dbtype == "sqlite":
|
||||
tplcontent += """dbpath = {{ dbname }}
|
||||
tplcontent += """dbpath = {{ dbname|safe }}
|
||||
query = {{ query|safe }}
|
||||
"""
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user