Commit e979507c authored by Ad Schellevis's avatar Ad Schellevis

(legacy) trim and strip pipes in detail description for firewall_aliases_edit.php

parent fd3e179f
......@@ -82,10 +82,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset($pconfig['host_url']);
foreach ($pconfig['detail'] as &$detailDescr) {
if (empty($detailDescr)) {
$detailDescr = trim(str_replace('|',' ' , sprintf(gettext("Entry added %s"), date('r')) ));
$detailDescr = sprintf(gettext("Entry added %s"), date('r'));
} else {
// trim and strip pipes
$detailDescr = trim(str_replace('|',' ' , $detailDescr));
}
}
$pconfig['detail'] = implode('||',$pconfig['detail']);
$pconfig['detail'] = implode('||', $pconfig['detail']);
if (isset($pconfig['submit'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment