summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_gif.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/interfaces_gif.php')
-rw-r--r--usr/local/www/interfaces_gif.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_gif.php b/usr/local/www/interfaces_gif.php
index 415c50a..ed6b41b 100644
--- a/usr/local/www/interfaces_gif.php
+++ b/usr/local/www/interfaces_gif.php
@@ -59,8 +59,12 @@ function gif_inuse($num) {
}
if ($_GET['act'] == "del") {
+ if (!isset($_GET['id']))
+ $input_errors[] = getext("Wrong parameters supplied");
+ else if (empty($a_gifs[$_GET['id']]))
+ $input_errors[] = getext("Wrong index supplied");
/* check if still in use */
- if (gif_inuse($_GET['id'])) {
+ else if (gif_inuse($_GET['id'])) {
$input_errors[] = gettext("This gif TUNNEL cannot be deleted because it is still being used as an interface.");
} else {
mwexec("/sbin/ifconfig " . $a_gifs[$_GET['id']]['gifif'] . " destroy");
OpenPOWER on IntegriCloud