From f09d4db4b8827a882a1ad4ef540a39a83ec9e868 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 27 Jan 2016 14:35:18 -0200 Subject: Select an interface to track is mandatory --- src/usr/local/www/interfaces.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 8702bb5..01f6f95 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -669,6 +669,10 @@ if ($_POST['apply']) { $input_errors[] = sprintf(gettext("You have to reassign the interface to be able to configure as %s."), $_POST['type6']); } + if (empty($_POST['track6-interface'])) { + $input_errors[] = gettext("You have to select a valid interface to track."); + } + if ($_POST['track6-prefix-id--hex'] != "" && !is_numeric("0x" . $_POST['track6-prefix-id--hex'])) { $input_errors[] = gettext("You must enter a valid hexadecimal number for the IPv6 prefix ID."); } else { -- cgit v1.1