Skip to content

Commit 87ac367

Browse files
committed
Fix the exception handling
1 parent bd65335 commit 87ac367

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wcfsetup/install/files/lib/util/UserUtil.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace wcf\util;
44

55
use wcf\system\email\Mailbox;
6-
use wcf\system\exception\SystemException;
76
use wcf\system\WCF;
87

98
/**
@@ -280,7 +279,7 @@ public static function verifyGuestToken(string $token): ?string
280279

281280
try {
282281
$data = \json_decode($json, true, flags: \JSON_THROW_ON_ERROR);
283-
} catch (SystemException $e) {
282+
} catch (\JsonException) {
284283
return null;
285284
}
286285

0 commit comments

Comments
 (0)