From cedc3d338cea11702110f4f1c6d676b52d6f2b2e Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 10 Sep 2011 12:05:29 +0200 Subject: [PATCH] MDL-29257 use more entropy in repo upload --- repository/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/lib.php b/repository/lib.php index 965d9d8def978..b6f09a78ce7e6 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -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;