aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-06-21 14:32:03 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-06-21 14:32:03 -0300
commitbae3cd11b7c0470460aa60002f869a470501526b (patch)
treea4e05707b8d13ae4bc9c50d782ebd9e3b78c51b0
parentd6eb7e94ad1ea0617d5ad891f3b3a5bd632d096c (diff)
downloadpfsense-packages-bae3cd11b7c0470460aa60002f869a470501526b.tar.gz
pfsense-packages-bae3cd11b7c0470460aa60002f869a470501526b.tar.bz2
pfsense-packages-bae3cd11b7c0470460aa60002f869a470501526b.zip
squidguard - minor fix to url check preg_match
-rw-r--r--config/squidGuard/squidguard_configurator.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index 8b963f6c..cd5eaadb 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -1557,7 +1557,7 @@ function is_dest_url($url)
$fmt = "[a-zA-Z0-9_-]";
if (empty($url)) return false;
- if (preg_match("/^(($fmt){1,}\.){1,}($fmt){2,}(/(.[^\*][^ ])*)/i", $url)) return true;
+ if (preg_match("/^(($fmt){1,}\.){1,}($fmt){2,}(\/(.[^\*][^ ])*)/i", $url)) return true;
return false;
}
# ------------------------------------------------------------------------------