GX-Bug #45361 » ProductImageFilenameFix.patch
src/GXEngine/Classes/Shared/FileSystem/FilenameStringType.php (revision ) | ||
---|---|---|
52 | 52 |
// en_US.UTF8 should always be available |
53 | 53 |
setlocale(LC_ALL, 'en_US.UTF8'); |
54 | 54 |
|
55 |
if($filename !== basename((string)$filename))
|
|
55 |
if(basename($filename) !== basename((string)$filename))
|
|
56 | 56 |
{ |
57 | 57 |
throw new InvalidArgumentException('Filename "' . (string)$filename . '" is not valid'); |
58 | 58 |
} |