Skip to content

Commit

Permalink
fix: slashes should not be escaped in PHP decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-craft committed Feb 21, 2024
1 parent 434568e commit cb9a9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utils/convert/php_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cb9a9eb

Please sign in to comment.