New function to exit the program

This commit is contained in:
Michael 2022-05-18 02:13:54 +00:00
parent 4e9d7df31a
commit f6167b4cfd
27 changed files with 73 additions and 94 deletions

View file

@ -24,6 +24,7 @@ namespace Friendica\Util;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Exception;
use Friendica\Core\System;
use Friendica\DI;
/**
@ -69,8 +70,7 @@ class JsonLD
if ($recursion > 5) {
Logger::error('jsonld bomb detected at: ' . $url);
DI::page()->logRuntime();
exit();
System::exit();
}
$result = DI::cache()->get('documentLoader:' . $url);