summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-11-08 21:23:29 -0500
committerChris Buechler <cmb@pfsense.org>2010-11-08 21:23:29 -0500
commit5868547083d34ae6e78d3584dd5f06d3bbe79873 (patch)
tree6084f314fdd41f8ccc8cdb0f93aa7679865b821d /usr/local/www
parent58db1fc4947a8b4bb60b695a32adee4b830eaab3 (diff)
downloadpfsense-5868547083d34ae6e78d3584dd5f06d3bbe79873.zip
pfsense-5868547083d34ae6e78d3584dd5f06d3bbe79873.tar.gz
fix input validation for GRE
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/interfaces_gre_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_gre_edit.php b/usr/local/www/interfaces_gre_edit.php
index 3eae000..609ccf9 100644
--- a/usr/local/www/interfaces_gre_edit.php
+++ b/usr/local/www/interfaces_gre_edit.php
@@ -84,8 +84,8 @@ if ($_POST) {
if (isset($id) && ($a_gres[$id]) && ($a_gres[$id] === $gre))
continue;
- if (($gre['if'] == $_POST['if']) && ($gre['tunnel-remote-net'] == $_POST['tunnel-remote-net'])) {
- $input_errors[] = sprintf(gettext("A gre with the network %s is already defined."),$gre['remote-network']);
+ if (($gre['if'] == $_POST['if']) && ($gre['tunnel-remote-addr'] == $_POST['tunnel-remote-addr'])) {
+ $input_errors[] = sprintf(gettext("A GRE tunnel with the network %s is already defined."),$gre['remote-network']);
break;
}
}
OpenPOWER on IntegriCloud