Skip to content

Commit cd7d94e

Browse files
Merge branch '3.4'
* 3.4: [Bridge\ProxyManager] Dont call __destruct() on non-instantiated services Consistently use 7 chars of sha256 for hash-based id generation Docblock improvement bumped Symfony version to 2.8.27 updated VERSION for 2.8.26 updated CHANGELOG for 2.8.26 bumped Symfony version to 2.7.34 updated VERSION for 2.7.33 update CONTRIBUTORS for 2.7.33 updated CHANGELOG for 2.7.33
2 parents ab2031d + c89fa99 commit cd7d94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Field/FileFormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setValue($value)
5959
$name = $info['basename'];
6060

6161
// copy to a tmp location
62-
$tmp = sys_get_temp_dir().'/'.sha1(uniqid(mt_rand(), true));
62+
$tmp = sys_get_temp_dir().'/'.strtr(substr(base64_encode(hash('sha256', uniqid(mt_rand(), true), true)), 0, 7), '/', '_');
6363
if (array_key_exists('extension', $info)) {
6464
$tmp .= '.'.$info['extension'];
6565
}

0 commit comments

Comments
 (0)