Merge pull request #28464 from nextcloud/bugfix/noid/session-error-handling

Only trap E_ERROR in session handling
pull/28478/head
John Molakvoæ 2021-08-17 11:39:33 +07:00 committed by GitHub
commit 0edfb24f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
}
/**