aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-11 19:51:00 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-11 19:51:00 +0200
commitd52543244d35e8dff7c487dfce1cada44d60e5d3 (patch)
treea85cf5af4f3bce35f66dfc783caeb2d7fb1c740e /config/squid3
parent2652266b891da18d000ee266088c9a70c60ef8e1 (diff)
downloadpfsense-packages-d52543244d35e8dff7c487dfce1cada44d60e5d3.tar.gz
pfsense-packages-d52543244d35e8dff7c487dfce1cada44d60e5d3.tar.bz2
pfsense-packages-d52543244d35e8dff7c487dfce1cada44d60e5d3.zip
Custom redirect URL handling
Diffstat (limited to 'config/squid3')
-rw-r--r--config/squid3/34/squid_antivirus.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid_antivirus.inc b/config/squid3/34/squid_antivirus.inc
index c6f128f1..5c3b6b3f 100644
--- a/config/squid3/34/squid_antivirus.inc
+++ b/config/squid3/34/squid_antivirus.inc
@@ -323,8 +323,8 @@ EOF;
$squidclamav_r[1] = "safebrowsing 1";
}
if ($antivirus_config['clamav_url'] != "") {
- $squidclamav_m[2] = "@redirect http@";
- $squidclamav_r[2] = "{$antivirus_config['clamav_url']}";
+ $squidclamav_m[2] = "@(redirect http.*)@";
+ $squidclamav_r[2] = "redirect {$antivirus_config['clamav_url']}";
}
/* Trying to overwrite squidclamav.conf via file_put_contents() may fail when Squid is running */
if (!file_put_contents("{$cf}", preg_replace($squidclamav_m, $squidclamav_r, $sample_file), LOCK_EX)) {