Skip to content

Commit

Permalink
Use JSON wrapper in image upload (FS#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
schplurtz authored and adrianheine committed Oct 27, 2011
1 parent 3bc1b86 commit 6fd4150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/exe/ajax.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 6fd4150

Please sign in to comment.