summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-06-08 08:16:17 -0400
committerjim-p <jimp@pfsense.org>2016-06-08 08:18:43 -0400
commitb301844cadcb2887c788be38eadc9b50ea5b8d52 (patch)
treed75fab761b4b9bcb2a45d2c151b81341ed4e8e2b
parente82ef1c5b43ab4fd1117966d0de881655958f1f3 (diff)
downloadFreeBSD-ports-RELENG_2_3_0.zip
FreeBSD-ports-RELENG_2_3_0.tar.gz
Prevent a '|' in supplied input from affecting the squidclamav logRELENG_2_3_0
-rw-r--r--www/pfSense-pkg-squid/Makefile2
-rw-r--r--www/pfSense-pkg-squid/files/usr/local/www/squid_clwarn.php6
2 files changed, 6 insertions, 2 deletions
diff --git a/www/pfSense-pkg-squid/Makefile b/www/pfSense-pkg-squid/Makefile
index 4ded8d6..9fa1564 100644
--- a/www/pfSense-pkg-squid/Makefile
+++ b/www/pfSense-pkg-squid/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= pfSense-pkg-squid
-PORTVERSION= 0.4.17
+PORTVERSION= 0.4.18
CATEGORIES= www
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/www/pfSense-pkg-squid/files/usr/local/www/squid_clwarn.php b/www/pfSense-pkg-squid/files/usr/local/www/squid_clwarn.php
index b6faf86..83d42ae 100644
--- a/www/pfSense-pkg-squid/files/usr/local/www/squid_clwarn.php
+++ b/www/pfSense-pkg-squid/files/usr/local/www/squid_clwarn.php
@@ -53,7 +53,11 @@ if (preg_match("/Safebrowsing/", $virus)) {
$errorreturn = 'This page cannot be displayed';
}
-error_log(date("Y-m-d H:i:s") . " | VIRUS FOUND | " . $virus . " | " . $url . " | " . $source . " | " . $user . "\n", 3, "/var/log/c-icap/virus.log");
+error_log(date("Y-m-d H:i:s") . " | VIRUS FOUND | "
+ . str_replace('|', '', $virus) . " | "
+ . str_replace('|', '', $url) . " | "
+ . str_replace('|', '', $source) . " | "
+ . str_replace('|', '', $user) . "\n", 3, "/var/log/c-icap/virus.log");
?>
<style type="text/css">
OpenPOWER on IntegriCloud