diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-08-17 10:47:25 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-08-17 10:47:25 +0200 |
commit | c1ea6a899c649b1ef4eb3de10f898e912448cc06 (patch) | |
tree | 623659c7e44c752ef6b37bcf6f470fb82be20987 /lib/private/Session/Internal.php | |
parent | 9603069cc7eff8967ccba1c8d805f3d9d6103924 (diff) | |
download | nextcloud-server-c1ea6a899c649b1ef4eb3de10f898e912448cc06.tar.gz nextcloud-server-c1ea6a899c649b1ef4eb3de10f898e912448cc06.zip |
Only trap E_ERROR in session handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Session/Internal.php')
-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); + } } /** |