mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-19 14:36:48 +01:00
Fix prevention from using % and * characters in folder name (#5762)
This commit is contained in:
committed by
Aleksander Machniak
parent
5af38a45cf
commit
496ee4a92d
@@ -48,7 +48,7 @@ else if ($name[0] == '.' && $RCMAIL->config->get('imap_skip_hidden_folders')) {
|
||||
else {
|
||||
// these characters are problematic e.g. when used in LIST/LSUB
|
||||
foreach (array($delimiter, '%', '*') as $char) {
|
||||
if (strpos($name, $delimiter) !== false) {
|
||||
if (strpos($name, $char) !== false) {
|
||||
$error = $RCMAIL->gettext('forbiddencharacter') . " ($char)";
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user