From 5868547083d34ae6e78d3584dd5f06d3bbe79873 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 8 Nov 2010 21:23:29 -0500 Subject: fix input validation for GRE --- usr/local/www/interfaces_gre_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www') 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; } } -- cgit v1.1