Skip to content

Commit

Permalink
issue #59 security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akate committed Sep 6, 2011
1 parent 9ea9cc5 commit 6223179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/media.php
Expand Up @@ -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);
Expand Down

0 comments on commit 6223179

Please sign in to comment.