Skip to content
Snippets Groups Projects
Commit 6fc7ffc9 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

use proper JSON in mediaupload response. fixes #1474

parent 023953f0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment