diff options
author | Phil Davis <phil.davis@inf.org> | 2015-07-13 00:16:01 +0545 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-15 10:38:49 -0300 |
commit | 6b30491f4af3eb3cc8d4444645cb554a7b5eaa65 (patch) | |
tree | 9c4c5105ce6f970c1b9b5cced929ff5693bcd199 /usr | |
parent | e3a5f4876f5fa2208746b6ace3b1b5f0a64be255 (diff) | |
download | pfsense-6b30491f4af3eb3cc8d4444645cb554a7b5eaa65.zip pfsense-6b30491f4af3eb3cc8d4444645cb554a7b5eaa65.tar.gz |
Interfaces GIF Edit fix do_input_validation
Make the required fields be correct and match thier text names, which should each have their own gettext() cal so as to build a proper array at line 81. Basically it was all broken and the errors displayed when field/s were left empty were rubbish.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces_gif_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_gif_edit.php b/usr/local/www/interfaces_gif_edit.php index a290e97..2087fef 100644 --- a/usr/local/www/interfaces_gif_edit.php +++ b/usr/local/www/interfaces_gif_edit.php @@ -74,8 +74,8 @@ if ($_POST) { $pconfig = $_POST; /* input validation */ - $reqdfields = explode(" ", "if tunnel-remote-addr tunnel-remote-net tunnel-local-addr"); - $reqdfieldsn = array(gettext("Parent interface,Local address, Remote tunnel address, Remote tunnel network, Local tunnel address")); + $reqdfields = explode(" ", "if remote-addr tunnel-local-addr tunnel-remote-addr tunnel-remote-net"); + $reqdfieldsn = array(gettext("Parent interface"), gettext("gif remote address"), gettext("gif tunnel local address"), gettext("gif tunnel remote address"), gettext("gif tunnel remote netmask")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |