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

Only trap E_ERROR in session handling
pull/28478/head
John Molakvoæ 5 years ago committed by GitHub
commit 0edfb24f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/private/Session/Internal.php

@ -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…
Cancel
Save