aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordvserg <dv_serg@mail.ru>2011-01-02 10:41:43 +0300
committerdvserg <dv_serg@mail.ru>2011-01-02 10:41:43 +0300
commitdc1b5278a45acaa35a08e55e0fb4ca79d833d614 (patch)
treee6b7c7bc7e90b6fab84c4a73b8b8a2fa07e8315f /config
parent506ec49fd6fa044b36a9e2e55a2af523ba2793e2 (diff)
downloadpfsense-packages-dc1b5278a45acaa35a08e55e0fb4ca79d833d614.tar.gz
pfsense-packages-dc1b5278a45acaa35a08e55e0fb4ca79d833d614.tar.bz2
pfsense-packages-dc1b5278a45acaa35a08e55e0fb4ca79d833d614.zip
Bug #1131 Fix
Diffstat (limited to 'config')
-rw-r--r--config/squidGuard/squidguard.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc
index 1c681497..12e52e35 100644
--- a/config/squidGuard/squidguard.inc
+++ b/config/squidGuard/squidguard.inc
@@ -1326,9 +1326,18 @@ function squidguard_logrep( $filename, $lncount, $reverse )
$cn = explode(" ", $cn, 4);
# split strings
- $st = str_split ($cn[3], 25);
+# $st = str_split ($cn[3], 25);
+# $cn[3] = "";
+# foreach( $st as $s ) $cn[3] .= $s . "<wbr/>";
+ $p = 0;
+ $pstep = 15;
+ $str = $cn[3];
$cn[3] = "";
- foreach( $st as $s ) $cn[3] .= $s . "<wbr/>";
+ for ( $p = 0; $p < strlen($str); $p += $pstep ) {
+ $s = substr( $str, $p, $pstep );
+ if ( !$s ) break;
+ $cn[3] .= $s . "<wbr/>";
+ }
$res .= "<tr><td nowrap class='listlr'>{$cn[0]} {$cn[1]}</td><td class='listr'>{$cn[3]}</td></tr>";
}