mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Optimze ICMP description processing
This commit is contained in:
parent
609ef33537
commit
32edd5dd79
@ -42,14 +42,16 @@ $icmptypes46 = array('any' => gettext('any'));
|
||||
|
||||
// ICMP descriptions may be translated, so require escaping to handle single quotes (in particular)
|
||||
foreach ($icmptypes as $k => $v) {
|
||||
$description = addslashes($v['descrip']);
|
||||
|
||||
if ($v['valid4']) {
|
||||
$icmptypes4[$k] = addslashes($v['descrip']);
|
||||
$icmptypes4[$k] = $description;
|
||||
if ($v['valid6']) {
|
||||
$icmptypes6[$k] = addslashes($v['descrip']);
|
||||
$icmptypes46[$k] = addslashes($v['descrip']);
|
||||
$icmptypes6[$k] = $description;
|
||||
$icmptypes46[$k] = $description;
|
||||
}
|
||||
} else {
|
||||
$icmptypes6[$k] = addslashes($v['descrip']);
|
||||
$icmptypes6[$k] = $description;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user