diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-08-17 11:39:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 11:39:33 +0200 |
commit | 0edfb24f143e666cf5a716e97bad2a82e67cc66b (patch) | |
tree | 4f44457bebc62a508922a312112c060318a994d8 /lib | |
parent | afe6af4d78106d86a0360bf8c05097a61f05ebd9 (diff) | |
parent | c1ea6a899c649b1ef4eb3de10f898e912448cc06 (diff) | |
download | nextcloud-server-0edfb24f143e666cf5a716e97bad2a82e67cc66b.tar.gz nextcloud-server-0edfb24f143e666cf5a716e97bad2a82e67cc66b.zip |
Merge pull request #28464 from nextcloud/bugfix/noid/session-error-handling
Only trap E_ERROR in session handling
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Session/Internal.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index f02f1c2541c..285b6fd7960 100644 --- a/lib/private/Session/Internal.php +++ b/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); + } } /** |