Skip to content

Commit 1ef2c54

Browse files
ErrorHandling: Use SOAP exception handler for HTTP POST only
ErrorHandling: Use SOAP exception handler for HTTP POST only (cherry picked from commit 73d307a)
1 parent 36fa65b commit 1ef2c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ protected function initWhoopsHandlers(): void
114114
*/
115115
public function getHandler(): HandlerInterface
116116
{
117-
if (ilContext::getType() === ilContext::CONTEXT_SOAP) {
117+
if (ilContext::getType() === ilContext::CONTEXT_SOAP &&
118+
strcasecmp($_SERVER['REQUEST_METHOD'] ?? '', 'post') === 0) {
118119
return new ilSoapExceptionHandler();
119120
}
120121

0 commit comments

Comments
 (0)