aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-11-30 10:14:55 -0500
committerjim-p <jimp@pfsense.org>2011-11-30 10:14:55 -0500
commit5b394a955d882d717c03722a5478cbafc3be1e23 (patch)
tree66b0c7befb08ae6fc0e3babfcacf0bdd751b11b8 /config/squidGuard
parent8490db315678c14c6b580e6d23718e8f089487c9 (diff)
downloadpfsense-packages-5b394a955d882d717c03722a5478cbafc3be1e23.tar.gz
pfsense-packages-5b394a955d882d717c03722a5478cbafc3be1e23.tar.bz2
pfsense-packages-5b394a955d882d717c03722a5478cbafc3be1e23.zip
Encode URL so blacklists with a & in their download URL work properly.
Diffstat (limited to 'config/squidGuard')
-rw-r--r--config/squidGuard/squidguard_blacklist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squidGuard/squidguard_blacklist.php b/config/squidGuard/squidguard_blacklist.php
index 54699928..5e8382ae 100644
--- a/config/squidGuard/squidguard_blacklist.php
+++ b/config/squidGuard/squidguard_blacklist.php
@@ -185,7 +185,7 @@ function getactivity(action) {
var url = "./squidguard_blacklist.php";
var pars = 'getactivity=yes';
- if (action == 'download') pars = pars + '&blacklist_download_start=yes&blacklist_url=' + el('blacklist_url').value;
+ if (action == 'download') pars = pars + '&blacklist_download_start=yes&blacklist_url=' + encodeURIComponent(el('blacklist_url').value);
if (action == 'cancel') pars = pars + '&blacklist_download_cancel=yes';
if (action == 'restore_default') pars = pars + '&blacklist_restore_default=yes';
if (action == 'clear_log') pars = pars + '&blacklist_clear_log=yes';