Skip to content
Snippets Groups Projects
Commit 6fd41509 authored by schplurtz le déboulonné's avatar schplurtz le déboulonné Committed by Adrian Lang
Browse files

Use JSON wrapper in image upload (FS#2345)

parent 3bc1b86f
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,8 @@ function ajax_mediaupload(){
}
$result = array('error' => $msg['msg'], 'ns' => $NS);
}
echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
$json = new JSON;
echo htmlspecialchars($json->encode($result), ENT_NOQUOTES);
}
function dir_delete($path) {
......
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