summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/ajax.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index 52131d864..d8754b875 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -265,9 +265,11 @@ function ajax_mediaupload(){
$res = media_upload_xhr($NS, $AUTH);
$id = $_GET['qqfile'];
}
+ $id = cleanID($id, false, true);
if ($res) $result = array('success' => true,
- 'link' => media_managerURL(array('ns' => getNS($id), 'image' => $id), '&'));
+ 'link' => media_managerURL(array('ns' => getNS($id), 'image' => $id), '&'),
+ 'id' => $id);
if (!$result) {
$error = '';