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:
Jérôme Lebleu
2020-01-07 09:34:39 +01:00
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: