Projekt

Allgemein

Profil

GX-Bug #45361 » ProductImageFilenameFix.patch

/GXEngine/Classes/Shared/FileSystem/FilenameStringType.php - Till Tepelmann, 25.02.2016 10:03

Unterschiede anzeigen:

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
		}
    (1-1/1)