mirror of
https://github.com/nextcloud/server.git
synced 2026-03-05 06:50:55 -05:00
Merge pull request #28469 from nextcloud/backport/28464/stable21
[stable21] Only trap E_ERROR in session handling
This commit is contained in:
commit
ac5d14400b
1 changed files with 3 additions and 1 deletions
|
|
@ -182,7 +182,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