Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/dom-crawler/Field/FileFormField.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/symfony/dom-crawler/Field/FileFormField.php Fri Feb 23 15:51:18 2018 +0000 +++ b/vendor/symfony/dom-crawler/Field/FileFormField.php Fri Feb 23 15:52:07 2018 +0000 @@ -59,7 +59,7 @@ $name = $info['basename']; // copy to a tmp location - $tmp = sys_get_temp_dir().'/'.sha1(uniqid(mt_rand(), true)); + $tmp = sys_get_temp_dir().'/'.strtr(substr(base64_encode(hash('sha256', uniqid(mt_rand(), true), true)), 0, 7), '/', '_'); if (array_key_exists('extension', $info)) { $tmp .= '.'.$info['extension']; }