[Dbconfig-common-devel] character escaping of templates (bug 716841)
Paul Gevers
elbrus at debian.org
Fri Oct 10 10:07:32 UTC 2014
Hi all,
The logic to dbconfig-generate-include in the dbconfig-common source is
slightly flawed [1] in the sense that it escapes all variable depending
on the language in case the dbconfig-common templates are used, but
forgets to do this language specific when a package template is used. As
I don't think there is a watertight check possible to determine what
language the variables should be escaped for (and e.g. in case of php/sh
it also depends on how the strings are quoted (' vs ")) I propose to
extend the format from "template" to "template | phptemplate |
shtemplate | perltemplate | cpptemplate" and use the right escape
algorithm depending on the selected format. I propose to keep "template"
as-is but let it generate a warning.
Objections? Other ideas or solutions?
Paul
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716841
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/dbconfig-common-devel/attachments/20141010/b46e0ede/attachment.sig>
More information about the Dbconfig-common-devel
mailing list