Skip to content

Commit 7049584

Browse files
committed
replace another json_encode
1 parent 81e58b4 commit 7049584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/UnityHTTPD.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,6 @@ public static function getUploadedFileContents(
185185
public static function alert(string $message)
186186
{
187187
// json_encode escapes quotes
188-
echo "<script type='text/javascript'>alert(" . json_encode($message) . ");</script>";
188+
echo "<script type='text/javascript'>alert(" . \jsonEncode($message) . ");</script>";
189189
}
190190
}

0 commit comments

Comments
 (0)