]> git.ipfire.org Git - ipfire-2.x.git/commit
ddns.cgi: Fix enable/disable handling of entries.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 5 Aug 2014 19:24:44 +0000 (21:24 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 5 Aug 2014 19:24:44 +0000 (21:24 +0200)
commitc2f80e67a711eee43dd5c815defc689fc7604b64
treebc8932d886df49bb2f0654ed287f7f0614025557
parent5354d0f5c902f208d755b3b8a06f5896d4d2c975
ddns.cgi: Fix enable/disable handling of entries.

When the "enabled" checkbox is checked a "on" will be returned,
if the box is unchecked checkboxes will return nothing.

As a result of this behaviour the ddns.conf contained entries which have been disabled in the WUI.

We now check if the checkbox returns a "on", otherwise we will set the "enabled" value to "off" to
prevent from this problem.
html/cgi-bin/ddns.cgi