Fixed a bug in the outgoingfw where preselected groups where not
authorChristian Schmidt <maniacikarus@ipfire.org>
Fri, 10 Dec 2010 11:10:47 +0000 (12:10 +0100)
committerChristian Schmidt <maniacikarus@ipfire.org>
Fri, 10 Dec 2010 11:10:47 +0000 (12:10 +0100)
set if you edit a rule.

config/rootfiles/core/44/filelists/files
html/cgi-bin/outgoingfw.cgi

index de75056e412294f0e61b2bdaaf4768188c08fbbc..866acf0bcff7477bdb7216499b06a62044826152 100644 (file)
@@ -12,6 +12,7 @@ srv/web/ipfire/cgi-bin/proxy.cgi
 srv/web/ipfire/cgi-bin/speed.cgi
 srv/web/ipfire/cgi-bin/vpnmain.cgi
 srv/web/ipfire/cgi-bin/ids.cgi
+srv/web/ipfire/cgi-bin/outgoingfw.cgi
 srv/web/ipfire/cgi-bin/pppsetup.cgi
 srv/web/ipfire/html/images/urlfilter/copy.gif
 var/ipfire/general-functions.pl
index a15b243c0591770c171ef7881367b4d93b36eca9..295bde477c4a9069fe986116642bf0d94e0a39c9 100644 (file)
@@ -699,7 +699,8 @@ END
 ;
        my @ipgroups = qx(ls $configpath/ipgroups/);
        foreach (sort @ipgroups){
-               print "\t\t\t\t\t<option value='$_' $selected{'SNET'}{'$_'}>$_</option>\n";
+               chomp($_);
+               print "\t\t\t\t\t<option value='$_' $selected{'SNET'}{$_}>$_</option>\n";
        }
        print <<END
                                        </optgroup>
@@ -708,7 +709,8 @@ END
 ;
        my @macgroups = qx(ls $configpath/macgroups/);
        foreach (sort @macgroups){
-               print "\t\t\t\t\t<option value='$_' $selected{'SNET'}{'$_'}>$_</option>\n";
+               chomp($_);
+               print "\t\t\t\t\t<option value='$_' $selected{'SNET'}{$_}>$_</option>\n";
        }
        print <<END
                                        </optgroup>
@@ -844,4 +846,4 @@ END
 }
 
 &Header::closebigbox();
-&Header::closepage();
\ No newline at end of file
+&Header::closepage();