summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-04-05 11:59:38 +0000
committerUrban Müller2012-04-05 11:59:38 +0000
commit3a64523a3ece162a8ab743215602cbcdb30b78ab (patch)
tree9246a85e98ad4716566c20989bd3b6d7647893ab
parentb88037b253c848a2a786c7cd3b28b3b75ce7d6c7 (diff)
downloaditools-3a64523a3ece162a8ab743215602cbcdb30b78ab.tar.gz
itools-3a64523a3ece162a8ab743215602cbcdb30b78ab.tar.bz2
itools-3a64523a3ece162a8ab743215602cbcdb30b78ab.zip
title length limit
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 8b81ba3..fdb9cc2 100644
--- a/it.class
+++ b/it.class
@@ -233,7 +233,7 @@ static function error($p = array(), $body = null, $to = null) # $body and $to de
else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web
echo "<pre>" . htmlspecialchars($p['title'] . "\n" . rtrim($body), ENT_COMPAT, "iso-8859-1") . "</pre>"; # works with iso-8859-1 or utf-8, UTF8SAFE
else # toscreen mode: shell (outputs to stderr)
- error_log($p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']} Url: $url") . " " . (EDC('verbose') ? D($p['locals']) : ""));
+ error_log(substr($p['title'], 0, 100000) . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']} Url: $url") . " " . (EDC('verbose') ? D($p['locals']) : ""));
}
if ($_SERVER['REMOTE_ADDR'])