summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-05-05 14:08:55 -0400
committerjim-p <jimp@pfsense.org>2017-05-05 14:09:50 -0400
commit292567807bb48ef83f67ebe2841c03ee59cbf1fc (patch)
treec8c0f0d55cc266892eaef4582787d61d73496087
parent6e82046c59ac3ba8641ca57a98c51414b2efbfef (diff)
downloadFreeBSD-ports-292567807bb48ef83f67ebe2841c03ee59cbf1fc.zip
FreeBSD-ports-292567807bb48ef83f67ebe2841c03ee59cbf1fc.tar.gz
Fix some more encoding issues in sgerror.php
(cherry picked from commit 78dc72e6a78bb02894237643cd199326fa9d7b67) (cherry picked from commit 782afcfee37bfe7710edfc02029dd42ac6cda0bf) (cherry picked from commit f9d02a330c7216fb8fac5a046916497a78178548)
-rw-r--r--www/pfSense-pkg-squidGuard/Makefile2
-rw-r--r--www/pfSense-pkg-squidGuard/files/usr/local/www/sgerror.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/www/pfSense-pkg-squidGuard/Makefile b/www/pfSense-pkg-squidGuard/Makefile
index 1822f41..a414d5d 100644
--- a/www/pfSense-pkg-squidGuard/Makefile
+++ b/www/pfSense-pkg-squidGuard/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= pfSense-pkg-squidGuard
-PORTVERSION= 1.16.1
+PORTVERSION= 1.16.2
CATEGORIES= www
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/www/pfSense-pkg-squidGuard/files/usr/local/www/sgerror.php b/www/pfSense-pkg-squidGuard/files/usr/local/www/sgerror.php
index 5f112a3..ed501f6c 100644
--- a/www/pfSense-pkg-squidGuard/files/usr/local/www/sgerror.php
+++ b/www/pfSense-pkg-squidGuard/files/usr/local/www/sgerror.php
@@ -151,7 +151,7 @@ function get_error_page($er_code_id, $err_msg='') {
<?php endif; ?>
<?php if ($err_msg): ?>
- <b>Reason:</b> <?= $err_msg ?>
+ <b>Reason:</b> <?= htmlspecialchars($err_msg) ?>
<?php endif; ?>
<hr size="1" noshade>
@@ -293,7 +293,7 @@ if ($url) {
header("Location: $url", '', 302);
} else {
// Output an error
- echo get_page("sgerror: error arguments $url");
+ echo get_page("sgerror: error arguments " . htmlspecialchars($url));
}
} else {
echo get_page($_SERVER['QUERY_STRING']); //$url . implode(" ", $_GET));
OpenPOWER on IntegriCloud