routing.cgi: Fix error in regex that validates "0.0.0.0".
[people/teissler/ipfire-2.x.git] / html / cgi-bin / routing.cgi
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";
        }