dnsforward.cgi: Check DISABLE_DNSSEC checkbox when editing
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Mar 2019 15:35:29 +0000 (15:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Mar 2019 15:36:04 +0000 (15:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/130/filelists/files
html/cgi-bin/dnsforward.cgi

index b9649b9..10e0184 100644 (file)
@@ -9,6 +9,7 @@ etc/rc.d/init.d/networking/red.up/23-suricata
 etc/rc.d/init.d/suricata
 etc/syslog.conf
 srv/web/ipfire/cgi-bin/aliases.cgi
+srv/web/ipfire/cgi-bin/dnsforward.cgi
 srv/web/ipfire/cgi-bin/ids.cgi
 srv/web/ipfire/cgi-bin/logs.cgi/ids.dat
 srv/web/ipfire/cgi-bin/logs.cgi/log.dat
index d9807c9..391905f 100644 (file)
@@ -189,7 +189,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'edit'})
                        $cgiparams{'ZONE'} = $temp[1];
                        $cgiparams{'FORWARD_SERVERS'} = join(",", split(/\|/, $temp[2]));
                        $cgiparams{'REMARK'} = $temp[3];
-                       $cgiparams{'DISABLE_DNSSEC'} = $temp[4];
+                       $cgiparams{'DISABLE_DNSSEC'} = ($temp[4] eq "on") ? "on" : "off";
                }
        }
 }
@@ -250,7 +250,7 @@ print <<END
        </tr>
        <tr>
                <td width ='20%' class='base'>$Lang::tr{'dns forward disable dnssec'}:</td>
-               <td><input type='checkbox' name='DISABLE_DNSSEC' $checked{'DISABLE_DNSSEC'}' /></td>
+               <td><input type='checkbox' name='DISABLE_DNSSEC' $checked{'DISABLE_DNSSEC'}{'on'} /></td>
        </tr>
 </table>
 <br>