routing.cgi: Fix error in regex that validates "0.0.0.0".
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Sep 2013 14:51:17 +0000 (16:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Sep 2013 14:51:17 +0000 (16:51 +0200)
Fixes #10417.

config/rootfiles/core/73/filelists/files
html/cgi-bin/routing.cgi

index b56a318e303ee5c13814ed5b963b7fd5efd27020..4c393d95dc991cb144d3bad08faa69c0085a4654 100644 (file)
@@ -4,6 +4,7 @@ etc/rc.d/init.d/dnsmasq
 etc/rc.d/init.d/squid
 srv/web/ipfire/cgi-bin/logs.cgi/proxylog.dat
 srv/web/ipfire/cgi-bin/proxy.cgi
+srv/web/ipfire/cgi-bin/routing.cgi
 srv/web/ipfire/html/redirect.cgi
 srv/web/ipfire/html/redirect-templates/
 var/ipfire/header.pl
index afcd38822d6fff49a5d0c592e1431df074d6ce99..488705fb528e89685e0b3476bb4498fad9212fec 100644 (file)
@@ -126,7 +126,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
        $errormessage = $Lang::tr{'invalid ip'}." / ".$Lang::tr{'invalid netmask'};
        }
 
-       if ($settings{'IP'} =~ /0.0.0.0/){
+       if ($settings{'IP'} =~ /^0\.0\.0\.0/){
        $errormessage = $Lang::tr{'invalid ip'}." - 0.0.0.0";
        }