]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
firewall: Predefine value for checkboxes.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Oct 2013 15:39:56 +0000 (17:39 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Oct 2013 15:39:56 +0000 (17:39 +0200)
It turns out, that this is not good style, but as the
rest of the CGI depends on it, we need to stick with
this.

html/cgi-bin/forwardfw.cgi

index 48e12e1a2eeca9e8296465dd1e116b1baf0386f3..a142e199de188a60a4a5a38f2e1489aa0f409f99 100755 (executable)
@@ -1657,7 +1657,7 @@ END
                &Header::openbox('100%', 'left', 'NAT');
                print<<END;
                        <label>
-                               <input type='checkbox' name='USE_NAT' id='USE_NAT' $checked{'USE_NAT'}{'ON'}>
+                               <input type='checkbox' name='USE_NAT' id='USE_NAT' value="ON" $checked{'USE_NAT'}{'ON'}>
                                $Lang::tr{'fwdfw use nat'}
                        </label>
                        <div class="NAT">
@@ -1960,7 +1960,7 @@ END
                if ($fwdfwsettings{'updatefwrule'} eq 'on') {
                        print <<END;
                                <td>
-                                       <input type='checkbox' name='ACTIVE' $checked{'ACTIVE'}{'ON'}>
+                                       <input type='checkbox' name='ACTIVE' value="ON" $checked{'ACTIVE'}{'ON'}>
                                </td>
                                <td>$Lang::tr{'fwdfw rule activate'}</td>
 END