New function to exit the program
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user