Fix bug where files in skins/ directory were listed on skins list (#7180)

bnet/additions
Aleksander Machniak 4 years ago
parent a3a260b613
commit 5d68245fa5

@ -12,6 +12,7 @@ CHANGELOG Roundcube Webmail
- Fix PHP Warning: array_filter() expects parameter 1 to be array, null given in subscriptions_option plugin (#7165)
- Fix unexpected error message when mail refresh involves folder auto-unsubscribe (#6923)
- Fix recipient duplicates in print-view when the recipient list has been expanded (#7169)
- Fix bug where files in skins/ directory were listed on skins list (#7180)
RELEASE 1.4.2
-------------

@ -1292,7 +1292,10 @@ function rcmail_get_skins()
while (($file = readdir($dir)) !== false) {
$filename = $path . '/' . $file;
if ($file[0] != '.' && (empty($limit) || in_array($file, $limit) && is_dir($filename) && is_readable($filename))) {
if ($file[0] != '.'
&& (empty($limit) || in_array($file, $limit))
&& is_dir($filename) && is_readable($filename)
) {
$skins[] = $file;
}
}

Loading…
Cancel
Save