Skip to content

Commit c2a79ed

Browse files
committed
Merge pull request #9111 from mjansenDatabay/hotfix/9/soap-err-handler-only-post
ErrorHandling/SOAP: Use SOAP exception handler for HTTP POST only
1 parent 1ef2c54 commit c2a79ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/ILIAS/Init/classes/class.ilErrorHandling.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ protected function defaultHandler(): HandlerInterface
272272
global $DIC;
273273

274274
$session_id = substr(session_id(), 0, 5);
275-
$r = new \Random\Randomizer();
276-
$err_num = $r->getInt(1, 9999);
275+
$random = new ilRandom();
276+
$err_num = $random->int(1, 9999);
277277
$file_name = $session_id . '_' . $err_num;
278278

279279
$logger = ilLoggingErrorSettings::getInstance();
@@ -393,6 +393,9 @@ protected function parseEditorPathTranslation(string $pathTranslationConfig): ar
393393

394394
protected function loggingHandler(): HandlerInterface
395395
{
396+
/**
397+
* @var
398+
*/
396399
return new CallbackHandler(function ($exception, Inspector $inspector, Run $run) {
397400
/**
398401
* Don't move this out of this callable

0 commit comments

Comments
 (0)