v2.1.7
This commit is contained in:
parent
c2ead8e434
commit
77d0cea926
995 changed files with 28142 additions and 8603 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