aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-07 13:38:36 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-07 13:38:36 +0100
commitdcb0cfe7d6b632db801bb1e0b2073024fa0a97df (patch)
treecab638a1be79115c378d054a934e1d1a9ddd75b9 /config/squidGuard
parent6efaddfd3c3a5baaa0132b35fafe6f20996ed85d (diff)
downloadpfsense-packages-dcb0cfe7d6b632db801bb1e0b2073024fa0a97df.tar.gz
pfsense-packages-dcb0cfe7d6b632db801bb1e0b2073024fa0a97df.tar.bz2
pfsense-packages-dcb0cfe7d6b632db801bb1e0b2073024fa0a97df.zip
Add input validation to force disabling of blacklists on nanobsd
Diffstat (limited to 'config/squidGuard')
-rw-r--r--config/squidGuard/squidguard.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc
index 4b5b7f43..0747dd0c 100644
--- a/config/squidGuard/squidguard.inc
+++ b/config/squidGuard/squidguard.inc
@@ -112,6 +112,11 @@ function squidguard_validate(&$post, &$input_errors)
if (($g['platform'] == "pfSense") && isset($config['system']['use_mfs_tmpvar'])) {
$input_errors[] = "Please, disable 'Use RAM Disks' under System: Advanced: Miscellaneous to avoid SquidGuard configuration breakage on reboot.";
}
+ if ($g['platform'] != "pfSense") {
+ if ($post['blacklist'] != "" || $post['blacklist_proxy'] != "" || $post['blacklist_url'] != "") {
+ $input_errors[] = "Blacklists usage is NOT supported on NanoBSD. Disable 'Blacklist' option in 'General settings'.";
+ }
+ }
sg_check_config_data($input_errors);
}
}