MDL-29257 use more entropy in repo upload
authorPetr Skoda <commits@skodak.org>
Sat, 10 Sep 2011 10:05:29 +0000 (12:05 +0200)
committerPetr Skoda <commits@skodak.org>
Sat, 10 Sep 2011 10:05:29 +0000 (12:05 +0200)
repository/lib.php

index 965d9d8..b6f09a7 100644 (file)
@@ -1317,7 +1317,7 @@ abstract class repository {
             $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;