Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cedc3d3
)
MDL-29257 use more entropy in ws upload
author
Petr Skoda
<commits@skodak.org>
Sat, 10 Sep 2011 10:06:59 +0000
(12:06 +0200)
committer
Petr Skoda
<commits@skodak.org>
Sat, 10 Sep 2011 10:06:59 +0000
(12:06 +0200)
files/externallib.php
patch
|
blob
|
blame
|
history
diff --git
a/files/externallib.php
b/files/externallib.php
index
eba388b
..
dc351b6
100644
(file)
--- a/
files/externallib.php
+++ b/
files/externallib.php
@@
-210,7
+210,7
@@
class moodle_file_external extends external_api {
$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'];
}