mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
New function to exit the program
This commit is contained in:
parent
4e9d7df31a
commit
f6167b4cfd
27 changed files with 73 additions and 94 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue