diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-08-19 20:56:43 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-08-19 20:56:43 +0300 |
commit | c472bad9de398442c30ec1410d07284f0db8b821 (patch) | |
tree | 263c0f5e952007b82079cd0ef76111a22ab3b7a8 /lib/exe/ajax.php | |
parent | d06c626c5f4a79cb833facf40bff089af2fcaa18 (diff) | |
download | rpg-c472bad9de398442c30ec1410d07284f0db8b821.tar.gz rpg-c472bad9de398442c30ec1410d07284f0db8b821.tar.bz2 |
issue #44 new uploader in the media popup
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r-- | lib/exe/ajax.php | 4 |
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 = ''; |