Skip to content

Commit

Permalink
MDL-29257 use more entropy in repo upload
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 10, 2011
1 parent 2c479c8 commit cedc3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ public function prepare_file($filename) {
$dir = $CFG->dataroot.'/temp/download/';
}
if (empty($filename)) {
$filename = uniqid('repo').'_'.time().'.tmp';
$filename = uniqid('repo', true).'_'.time().'.tmp';
}
if (file_exists($dir.$filename)) {
$filename = uniqid('m').$filename;
Expand Down

0 comments on commit cedc3d3

Please sign in to comment.