mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-23 14:58:04 +08:00
fix: slashes should not be escaped in PHP decoder
This commit is contained in:
parent
434568e66d
commit
cb9a9ebb8a
@ -15,7 +15,7 @@ if ($action === 'decode') {
|
||||
if ($decoded !== false) {
|
||||
$obj = unserialize($decoded);
|
||||
if ($obj !== false) {
|
||||
$unserialized = json_encode($obj, JSON_UNESCAPED_UNICODE);
|
||||
$unserialized = json_encode($obj, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
if ($unserialized !== false) {
|
||||
echo base64_encode($unserialized);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user