mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #1381 from phil-davis/patch-8
This commit is contained in:
commit
a516c81efe
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user