Variable values aren't escaped, so a config file with this
Code: Select all
_TESTVARIABLE testing' -- SQL comment Code: Select all
| 3472 | _TESTVARIABLE| testing | 1970-02-02 01:01:01 |The main annoying issue is that it also causes a bug with certain character sequences, for instance, importing a config file with this line breaks the generated config:
Code: Select all
_TESTVARIABLE aaaaa\nagios
The bug manifests even if the files are prepared using xiprepimport.
The issue seems to be in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php, in this case
Code: Select all
writeRelation_4Thanks,
Gonzalo