v1.4.2
This commit is contained in:
parent
6a8de6e2e2
commit
a80a4aa4f9
1 changed files with 3186001 additions and 9155 deletions
4
vendor/symfony/filesystem/Filesystem.php
vendored
4
vendor/symfony/filesystem/Filesystem.php
vendored
|
|
@ -610,8 +610,10 @@ class Filesystem
|
|||
|
||||
// If no scheme or scheme is "file" or "gs" (Google Cloud) create temp file in local filesystem
|
||||
if ((null === $scheme || 'file' === $scheme || 'gs' === $scheme) && '' === $suffix) {
|
||||
// PHP's tempnam() truncates the prefix to 63 characters; trim trailing whitespace
|
||||
// from the truncated value, as a trailing space makes the file creation fail on Windows
|
||||
// If tempnam failed or no scheme return the filename otherwise prepend the scheme
|
||||
if ($tmpFile = self::box('tempnam', $hierarchy, $prefix)) {
|
||||
if ($tmpFile = self::box('tempnam', $hierarchy, rtrim(substr($prefix, 0, 63)))) {
|
||||
if (null !== $scheme && 'gs' !== $scheme) {
|
||||
return $scheme.'://'.$tmpFile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue