Skip to content

Commit

Permalink
MDL-29257 use more entropy in ws upload
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 10, 2011
1 parent cedc3d3 commit af08a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static function upload($contextid, $component, $filearea, $itemid, $filep
$dir = make_upload_directory('temp/wsupload');

if (empty($fileinfo['filename'])) {
$filename = uniqid('wsupload').'_'.time().'.tmp';
$filename = uniqid('wsupload', true).'_'.time().'.tmp';
} else {
$filename = $fileinfo['filename'];
}
Expand Down

0 comments on commit af08a48

Please sign in to comment.