Commit 8d3797a2 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: this is how it should be ;)

parent 48d4f752
...@@ -318,7 +318,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -318,7 +318,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors[] = gettext("The Server Bridge DHCP range is invalid (start higher than end)."); $input_errors[] = gettext("The Server Bridge DHCP range is invalid (start higher than end).");
} }
} }
if (isset($pconfig['reneg-sec']) && (string)((int)$pconfig['reneg-sec']) != $pconfig['reneg-sec']) { if (isset($pconfig['reneg-sec']) && $pconfig['reneg-sec'] != "" && (string)((int)$pconfig['reneg-sec']) != $pconfig['reneg-sec']) {
$input_errors[] = gettext("Renegotiate time should contain a valid number of seconds."); $input_errors[] = gettext("Renegotiate time should contain a valid number of seconds.");
} }
do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors); do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment