]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Firewall: Bugfix: When creating a rule and using brackets in comment, the rule is...
authorAlexander Marx <amarx@ipfire.org>
Fri, 8 Nov 2013 12:40:24 +0000 (13:40 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Nov 2013 12:40:45 +0000 (13:40 +0100)
Now brackets are allowed.

html/cgi-bin/firewall.cgi

index 0b7c6fc44495a39a466f88c570c96228e22f193b..3e4e3b0eb7df694e3f86adb1d5a4f8c30b938fbe 100755 (executable)
@@ -2355,7 +2355,7 @@ sub validremark
        if ($remark !~ /^[a-zäöüA-ZÖÄÜ0-9-.:;\|_()\/\s]*$/) {
                return 0;}
        # First character can only be a letter or a digit
-       if (substr ($remark, 0, 1) !~ /^[a-zäöüA-ZÖÄÜ0-9]*$/) {
+       if (substr ($remark, 0, 1) !~ /^[a-zäöüA-ZÖÄÜ0-9(]*$/) {
                return 0;}
        # Last character can only be a letter or a digit
        if (substr ($remark, -1, 1) !~ /^[a-zöäüA-ZÖÄÜ0-9.:;_)]*$/) {