aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squidGuard
diff options
context:
space:
mode:
authorD. V. Serg <dvserg@pfsense.org>2008-12-17 05:45:56 +0000
committerD. V. Serg <dvserg@pfsense.org>2008-12-17 05:45:56 +0000
commit52581ba876f6e460fc4a1a777add0954dd38e85e (patch)
treeeb89a4e1c4aab9848f9fb697184e6180c0d92e4c /packages/squidGuard
parentc9a50bba24661d6b6d63404b5ea3cf83c10bf233 (diff)
downloadpfsense-packages-52581ba876f6e460fc4a1a777add0954dd38e85e.tar.gz
pfsense-packages-52581ba876f6e460fc4a1a777add0954dd38e85e.tar.bz2
pfsense-packages-52581ba876f6e460fc4a1a777add0954dd38e85e.zip
Fix rewrites
Diffstat (limited to 'packages/squidGuard')
-rw-r--r--packages/squidGuard/squidguard_configurator.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/squidGuard/squidguard_configurator.inc b/packages/squidGuard/squidguard_configurator.inc
index b359fa0a..0f6eec45 100644
--- a/packages/squidGuard/squidguard_configurator.inc
+++ b/packages/squidGuard/squidguard_configurator.inc
@@ -851,7 +851,7 @@ function sg_create_config()
if (is_array($rew[FLD_ITEM])) {
foreach ($rew[FLD_ITEM] as $rw)
- $sg_tag->items[] = "s@.{$rw[FLD_TARGETURL]}@{$rw[FLD_REPLACETO]}@r";
+ $sg_tag->items[] = "s@{$rw[FLD_TARGETURL]}@{$rw[FLD_REPLACETO]}@r";
if ($rew[FLD_LOG])
$sg_tag->items[] = "log " . SQUIDGUARD_ACCESSBLOCK_FILE;
@@ -955,6 +955,8 @@ function sg_create_config()
$sg_tag_def->items[] = "pass {$def[FLD_DESTINATIONNAME]}";
if ($def[FLD_RMOD] !== RMOD_NONE)
$sg_tag_def->items[] = "redirect " . sg_redirector_base_url($def[FLD_REDIRECT], $def[FLD_RMOD]);
+ if ($def[FLD_REWRITENAME])
+ $sg_tag_def->items[] = "rewrite {$def[FLD_REWRITENAME]}";
if ($def[FLD_LOG])
$sg_tag_def->items[] = "log " . SQUIDGUARD_ACCESSBLOCK_FILE;