summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-08-17 11:39:33 +0200
committerGitHub <noreply@github.com>2021-08-17 11:39:33 +0200
commit0edfb24f143e666cf5a716e97bad2a82e67cc66b (patch)
tree4f44457bebc62a508922a312112c060318a994d8 /lib
parentafe6af4d78106d86a0360bf8c05097a61f05ebd9 (diff)
parentc1ea6a899c649b1ef4eb3de10f898e912448cc06 (diff)
downloadnextcloud-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.php4
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);
+ }
}
/**