diff options
author | Phil Davis <phil.davis@inf.org> | 2016-03-11 20:28:53 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-03-11 20:28:53 +0545 |
commit | 306cbbc80e1e4517f288cbb1a30b567b71a9f320 (patch) | |
tree | 1115d7dfbb32f147222ce8f75af13fc8966e3485 /src/usr/local/www/services_dhcpv6.php | |
parent | 418695882980cce2450e97608ee0864885208250 (diff) | |
download | pfsense-306cbbc80e1e4517f288cbb1a30b567b71a9f320.zip pfsense-306cbbc80e1e4517f288cbb1a30b567b71a9f320.tar.gz |
Fix $POST checks so they do not depend on string Save
This prevents problems when Save is translated to other languages.
Note: This is the only remaining place I could find with this issue.
There are other pieces of code that do:
```
if ($_POST['save'] == gettext("Save"))
```
which also works, but looks a bit ugly.
I left those alone, since they do work OK in any language.
Diffstat (limited to 'src/usr/local/www/services_dhcpv6.php')
-rw-r--r-- | src/usr/local/www/services_dhcpv6.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php index 41cb14a..7cd52db 100644 --- a/src/usr/local/www/services_dhcpv6.php +++ b/src/usr/local/www/services_dhcpv6.php @@ -220,9 +220,9 @@ if (is_array($dhcrelaycfg) && isset($dhcrelaycfg['enable']) && isset($dhcrelaycf } } -if ($_POST['apply'] == "Apply Changes") { +if (isset($_POST['apply'])) { $savemsg = dhcpv6_apply_changes(false); -} elseif ($_POST['save'] == "Save") { +} elseif (isset($_POST['save'])) { unset($input_errors); $old_dhcpdv6_enable = ($pconfig['enable'] == true); |