summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-05-17 15:54:14 +0200
committerUrban Müller2023-05-17 15:54:14 +0200
commit2da0d3f54d985ac63feadb7db708d3470de4a167 (patch)
tree89af0dda36e090f93c29f832878a0db0382a5614
parent732f456413428e746141e34037e4b0ce0088f7fd (diff)
downloaditools-2da0d3f54d985ac63feadb7db708d3470de4a167.tar.gz
itools-2da0d3f54d985ac63feadb7db708d3470de4a167.tar.bz2
itools-2da0d3f54d985ac63feadb7db708d3470de4a167.zip
prevent potential recursions through it::fatal in it::file_put_contents (thx buddha)
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 7b4b614..d55c5a7 100644
--- a/it.class
+++ b/it.class
@@ -269,7 +269,7 @@ 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)
{
- @it::file_put_contents($datafn = "$home/tmp/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT
+ @file_put_contents($datafn = "$home/tmp/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT
$p['body'] = " See " . getenv('HOSTNAME') . ":$datafn";
}