Firewall: Remarkcheck should now support old firewallrules from converter

This commit is contained in:
Alexander Marx
2014-03-05 08:13:04 +01:00
parent 2610f3930a
commit 65c9b3a508

View File

@@ -2141,6 +2141,7 @@ sub saverule
&changerule($configfwdfw);
#print"6";
}
$fwdfwsettings{'ruleremark'}=~ s/,/;/g;
$fwdfwsettings{'ruleremark'}=&Header::escape($fwdfwsettings{'ruleremark'});
if ($fwdfwsettings{'updatefwrule'} ne 'on'){
my $key = &General::findhasharraykey ($hash);
@@ -2278,7 +2279,6 @@ sub validremark
{
# Checks a hostname against RFC1035
my $remark = $_[0];
$remark =~ s/,/;/g;
if ($remark =~ /^[[:print:]]*$/) {
return 1;
}