From 496ee4a92ddc8caad4fa8b9c38dfd700b110b8af Mon Sep 17 00:00:00 2001 From: AndrolGenhald Date: Tue, 16 May 2017 01:40:07 -0500 Subject: [PATCH] Fix prevention from using % and * characters in folder name (#5762) --- program/steps/settings/save_folder.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/steps/settings/save_folder.inc b/program/steps/settings/save_folder.inc index e72421282c5..ed1b09fc122 100644 --- a/program/steps/settings/save_folder.inc +++ b/program/steps/settings/save_folder.inc @@ -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; }