Skip to content

Commit be490f6

Browse files
authored
Merge pull request #28471 from nextcloud/backport/28464/stable20
[stable20] Only trap E_ERROR in session handling
2 parents 2305519 + cd01d63 commit be490f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Session/Internal.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ public function reopen() {
182182
* @throws \ErrorException
183183
*/
184184
public function trapError(int $errorNumber, string $errorString) {
185-
throw new \ErrorException($errorString);
185+
if ($errorNumber & E_ERROR) {
186+
throw new \ErrorException($errorString);
187+
}
186188
}
187189

188190
/**

0 commit comments

Comments
 (0)