diff options
author | Urban Müller | 2023-07-25 15:54:35 +0200 |
---|---|---|
committer | Urban Müller | 2023-07-25 15:54:35 +0200 |
commit | d72f3898e3d78f5e018a155e3c47c43c366ccec4 (patch) | |
tree | 7417e7176daba5dc1687ef98dbb81d1a8eb22729 /it.class | |
parent | 91c2b2e715e4e1932258cf23db0eba31cfd96ba4 (diff) | |
download | itools-d72f3898e3d78f5e018a155e3c47c43c366ccec4.tar.gz itools-d72f3898e3d78f5e018a155e3c47c43c366ccec4.tar.bz2 itools-d72f3898e3d78f5e018a155e3c47c43c366ccec4.zip |
strip superfluous newlines in title
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ static function error($p = array(), $extra = null) return $p['fatal'] ? self::_exit($p) : null; $p['title'] = $p[0] ?: $p['title']; # handle 'it_error' => "oops" that was cast to array on the way - $p['title'] = grapheme_substr($p['title'], 0, 2000) ?: substr($p['title'], 0, 2000); + $p['title'] = rtrim(grapheme_substr($p['title'], 0, 2000) ?: substr($p['title'], 0, 2000)); $p += is_callable(self::$error_context) ? (self::$error_context)() : []; $home = $GLOBALS['ULTRAHOME']; |