mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-19 17:11:20 +01:00
Fix for Windows OS
This commit is contained in:
@@ -105,7 +105,9 @@ function validateStaticFile(string $path): ?string
|
||||
}
|
||||
|
||||
// Allow images in the root folder (#10030)
|
||||
if (!$found && !str_contains($path, \DIRECTORY_SEPARATOR) && str_starts_with(SUPPORTED_TYPES[strtolower($ext)], 'image/')) {
|
||||
if (!$found && !str_contains($path, '/') && !str_contains($path, '\\')
|
||||
&& str_starts_with(SUPPORTED_TYPES[strtolower($ext)], 'image/')
|
||||
) {
|
||||
$found = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user