mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 00:56:16 -04:00
Merge pull request #28464 from nextcloud/bugfix/noid/session-error-handling
Only trap E_ERROR in session handling
This commit is contained in:
commit
0edfb24f14
1 changed files with 3 additions and 1 deletions
|
|
@ -181,7 +181,9 @@ class Internal extends Session {
|
|||
* @throws \ErrorException
|
||||
*/
|
||||
public function trapError(int $errorNumber, string $errorString) {
|
||||
throw new \ErrorException($errorString);
|
||||
if ($errorNumber & E_ERROR) {
|
||||
throw new \ErrorException($errorString);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue