diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/media.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php index 4db23ed8d..80d066c8d 100644 --- a/inc/media.php +++ b/inc/media.php @@ -247,7 +247,7 @@ function media_upload_xhr($ns,$auth){ fclose($input); if ($realSize != (int)$_SERVER["CONTENT_LENGTH"]) return false; if (!($tmp = io_mktmpdir())) return false; - $path = $tmp.'/'.$id; + $path = $tmp.'/'.md5($id); $target = fopen($path, "w"); fseek($temp, 0, SEEK_SET); stream_copy_to_stream($temp, $target); |