From d52543244d35e8dff7c487dfce1cada44d60e5d3 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 11 Oct 2015 19:51:00 +0200 Subject: Custom redirect URL handling --- config/squid3/34/squid_antivirus.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/squid3/34/squid_antivirus.inc') 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)) { -- cgit v1.2.3