Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
修复/被转义的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
asforest committed Apr 12, 2022
1 parent d837c7e commit 3cb2657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function dir_hash($path)

function jsonify($obj, $pretty = false)
{
return json_encode($obj, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
return json_encode($obj, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
}

header('Content-Type:text/plain;charset=utf-8');
Expand Down

0 comments on commit 3cb2657

Please sign in to comment.