We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9a2840 commit 0dcae09Copy full SHA for 0dcae09
composer.json
@@ -5,7 +5,6 @@
5
"require": {
6
"php": ">=7.4",
7
"ext-openssl": "*",
8
- "ext-json": "*",
9
"phpgt/http": "1.*",
10
"phpgt/session": ">=1.1"
11
},
src/Token.php
@@ -60,15 +60,10 @@ public function decryptResponseCipher(string $cipher):UserData {
60
throw new ResponseCipherDecryptionException();
61
}
62
63
- try {
64
- $obj = json_decode(
65
- $decrypted,
66
- false,
67
- 2,
68
- JSON_THROW_ON_ERROR
69
- );
70
- }
71
- catch(JsonException $exception) {
+ $obj = unserialize(
+ $decrypted
+ );
+ if($obj === false) {
72
throw new InvalidUserDataSerializationException();
73
74
0 commit comments