ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

Logging: Don't log to console for xhr request not sending `cmdMode` to prevent invalid JSON responses

Open mjansenDatabay opened this issue 2 years ago • 0 comments

This PR fixes an issue with popular community plugins (like UserTakeover) sending xhr requests which do not include a cmdMode=async query parameter.

If the console logging is enabled in the ILIAS logging administration, JSON HTTP responses are not valide anymore because \Monolog\Handler\BrowserConsoleHandler appends a <script> tag to the response body.

mjansenDatabay avatar Jul 21 '22 17:07 mjansenDatabay