projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
vendor
/
symfony
/
dom-crawler
/
Field
/
FileFormField.php
diff --git
a/vendor/symfony/dom-crawler/Field/FileFormField.php
b/vendor/symfony/dom-crawler/Field/FileFormField.php
index 0e0f94347a5ee8b5737e991de32ec40ec4cc24e5..fc21239f0105938b011ca4e3eb3dda655eaad08e 100644
(file)
--- a/
vendor/symfony/dom-crawler/Field/FileFormField.php
+++ b/
vendor/symfony/dom-crawler/Field/FileFormField.php
@@
-59,7
+59,7
@@
class FileFormField extends FormField
$name = $info['basename'];
// copy to a tmp location
$name = $info['basename'];
// copy to a tmp location
- $tmp = sys_get_temp_dir().'/'.s
ha1(uniqid(mt_rand(), true)
);
+ $tmp = sys_get_temp_dir().'/'.s
trtr(substr(base64_encode(hash('sha256', uniqid(mt_rand(), true), true)), 0, 7), '/', '_'
);
if (array_key_exists('extension', $info)) {
$tmp .= '.'.$info['extension'];
}
if (array_key_exists('extension', $info)) {
$tmp .= '.'.$info['extension'];
}