summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2023-05-08 14:48:35 +0200
committerUrban Müller2023-05-08 14:48:35 +0200
commit7ecdc7cc15a19fe35fd45aa4460be3da23dfd4d1 (patch)
treea82089016dbebc8edaa75cc939fbd30c39dca087 /it.class
parent9ce1061573da6196aa18f54e626a3ffa759b9666 (diff)
downloaditools-7ecdc7cc15a19fe35fd45aa4460be3da23dfd4d1.tar.gz
itools-7ecdc7cc15a19fe35fd45aa4460be3da23dfd4d1.tar.bz2
itools-7ecdc7cc15a19fe35fd45aa4460be3da23dfd4d1.zip
fix save path for long bodies
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 1429e9d..8574555 100644
--- a/it.class
+++ b/it.class
@@ -269,8 +269,8 @@ static function error($p = array(), $extra = null)
$p['body'] = is_string($p['body']) || !array_key_exists('body', $p) ? $p['body'] : it_debug::dump([$p['body']], ['html' => false, 'short' => true, 'color' => false]);
if (strlen($p['body']) > 500000 || it::match('[\x00-\x08\x0E-\x1F]', $p['body'], ['utf8' => false]) !== null)
{
- file_put_contents($datafn = "$home/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT
- $p['body'] = "Body: " . getenv('HOSTNAME') . ":$datafn";
+ file_put_contents($datafn = "$home/tmp/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT
+ $p['body'] = " See " . getenv('HOSTNAME') . ":$datafn";
}
$body =