Skip to content
Browse files

issue #59 security fix

  • Loading branch information...
1 parent 9ea9cc5 commit 62231793d3f25f1cc59d328ee5d4e28c483f7962 @akate committed Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/media.php
View
2 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);

0 comments on commit 6223179

Please sign in to comment.
Something went wrong with that request. Please try again.