mirror of
https://github.com/roundcube/roundcubemail.git
synced 2025-12-27 23:45:58 +00:00
Fix for Windows OS
This commit is contained in:
parent
7cab146f7b
commit
e84c5ad54f
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user