diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-11-08 21:23:29 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-11-08 21:23:29 -0500 |
commit | 5868547083d34ae6e78d3584dd5f06d3bbe79873 (patch) | |
tree | 6084f314fdd41f8ccc8cdb0f93aa7679865b821d | |
parent | 58db1fc4947a8b4bb60b695a32adee4b830eaab3 (diff) | |
download | pfsense-5868547083d34ae6e78d3584dd5f06d3bbe79873.zip pfsense-5868547083d34ae6e78d3584dd5f06d3bbe79873.tar.gz |
fix input validation for GRE
-rw-r--r-- | usr/local/www/interfaces_gre_edit.php | 4 |
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; } } |