diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 1c1b5f03fcfcfd21fb80f42cea9afa59135361ec..b3e9a618f565143707904fd89770accba787111f 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -303,7 +303,8 @@ function ajax_mediaupload(){ ); } $json = new JSON; - echo htmlspecialchars($json->encode($result), ENT_NOQUOTES); + header('Content-Type: application/json'); + echo $json->encode($result); } /**