diff options
author | schplurtz le déboulonné <schplurtz@laposte.net> | 2011-10-27 14:14:19 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2011-10-27 14:14:19 +0200 |
commit | 6fd41509f28290d217a2c9995341215944d31916 (patch) | |
tree | 276d4925c7ad136471ca4f84fe062dc7d2207786 /lib/exe | |
parent | 3bc1b86f57f47cd1dc0d9443137e12fc325e304b (diff) | |
download | rpg-6fd41509f28290d217a2c9995341215944d31916.tar.gz rpg-6fd41509f28290d217a2c9995341215944d31916.tar.bz2 |
Use JSON wrapper in image upload (FS#2345)
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/ajax.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index d4ef8dc11..f8d62cb57 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -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) { |