summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 57ae3ae..83532a8 100644
--- a/it.class
+++ b/it.class
@@ -210,7 +210,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate
$body .= $fulltrace ? "Stack: " . print_r($fulltrace, true) . "\n\n" : "";
$body = it::replace(array('(pw|passw|password|secret)\] => .*' => '$1] => ********'), $body);
- it::mail(array('To' => $p['to'], 'Subject' => $p['title'], 'Body' => $body) + (($cc = $GLOBALS['it_defaultconfig']['error_cc']) ? array('Cc' => $cc) : array()));
+ it::mail(array('To' => $p['to'], 'Subject' => substr($p['title'], 0, 80), 'Body' => $body) + (($cc = $GLOBALS['it_defaultconfig']['error_cc']) ? array('Cc' => $cc) : array()));
}
else if ($_SERVER['REMOTE_ADDR']) # toscreen mode: web
echo "<pre>{$p['title']}\n".rtrim($body)."</pre>";