Escape newlines in config values.
This commit is contained in:
parent
34d7f192b4
commit
462ec45a07
|
@ -109,7 +109,9 @@ stateStrings[STATE_TAPE] = "<?php echo translate('Record') ?>";
|
||||||
<?php
|
<?php
|
||||||
global $config;
|
global $config;
|
||||||
foreach ($config as $name=>$c) {
|
foreach ($config as $name=>$c) {
|
||||||
if (!$c['Private'])
|
if (!$c['Private']) {
|
||||||
echo 'const '. $name . ' = \''.$c['Value'].'\''.PHP_EOL;
|
|
||||||
|
echo 'const '. $name . ' = \''.preg_replace('/(\n\r?)/', '\$1', $c['Value']).'\''.PHP_EOL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue