aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard/squidguard.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/squidGuard/squidguard.inc')
-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>";
}