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) {
|
if ($decoded !== false) {
|
||||||
$obj = unserialize($decoded);
|
$obj = unserialize($decoded);
|
||||||
if ($obj !== false) {
|
if ($obj !== false) {
|
||||||
$unserialized = json_encode($obj, JSON_UNESCAPED_UNICODE);
|
$unserialized = json_encode($obj, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||||
if ($unserialized !== false) {
|
if ($unserialized !== false) {
|
||||||
echo base64_encode($unserialized);
|
echo base64_encode($unserialized);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue