]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/cgi-bin/routing.cgi
Forward Firewall: Bugfix: When creating a rule which results in an error, the counter...
[people/teissler/ipfire-2.x.git] / html / cgi-bin / routing.cgi
index 86e04293a406ada5098ee950a8e72818b02944fb..afcd38822d6fff49a5d0c592e1431df074d6ce99 100644 (file)
@@ -118,6 +118,8 @@ if ($settings{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
 }
 
 if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
+       # Convert subnet masks to CIDR notation.
+       $settings{'IP'} = &General::iporsubtocidr($settings{'IP'});
 
 # Validate inputs
        if (( !&General::validip($settings{'IP'})) and ( !&General::validipandmask($settings{'IP'}))){
@@ -443,4 +445,4 @@ sub SortDataFile
 #
 sub BuildConfiguration {
     system '/usr/local/bin/rebuildroutes';
-}
\ No newline at end of file
+}