summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware_settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_firmware_settings.php')
-rw-r--r--usr/local/www/system_firmware_settings.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php
index adafbd4..f5cfd38 100644
--- a/usr/local/www/system_firmware_settings.php
+++ b/usr/local/www/system_firmware_settings.php
@@ -43,6 +43,13 @@
require("guiconfig.inc");
if ($_POST) {
+ unset($input_errors);
+
+ /* input validation */
+ if(($_POST['alturlenable'] == "yes") && (empty($_POST['firmwareurl']))) {
+ $input_errors[] = gettext("A Firmware Auto Update Base URL must be specified when \"Use an unofficial server for firmware upgrades\" is enabled.");
+ }
+
if (!$input_errors) {
if($_POST['alturlenable'] == "yes") {
$config['system']['firmware']['alturl']['enable'] = true;
OpenPOWER on IntegriCloud