зеркало из https://github.com/mozilla/pjs.git
Bug #303729 --> trailing space in folder names are removed and the folder is not accessible anymore. Patch by Atsushi Sakai <dev-null@hotmail.co.jp>. r=mscott, sr=bienvenu
This commit is contained in:
Родитель
a04a606096
Коммит
caf6c4a927
|
@ -85,7 +85,7 @@ static NS_DEFINE_CID(kCNntpUrlCID, NS_NNTPURL_CID);
|
|||
|
||||
#define ILLEGAL_FOLDER_CHARS ";#"
|
||||
#define ILLEGAL_FOLDER_CHARS_AS_FIRST_LETTER "."
|
||||
#define ILLEGAL_FOLDER_CHARS_AS_LAST_LETTER ".~"
|
||||
#define ILLEGAL_FOLDER_CHARS_AS_LAST_LETTER ".~ "
|
||||
|
||||
#define NS_PASSWORDMANAGER_CATEGORY "passwordmanager"
|
||||
static PRBool gInitPasswordManager = PR_FALSE;
|
||||
|
@ -340,7 +340,7 @@ nsresult NS_MsgHashIfNecessary(nsCAutoString &name)
|
|||
// are too long or contain illegal characters
|
||||
PRInt32 illegalCharacterIndex = str.FindCharInSet(illegalChars);
|
||||
|
||||
// Need to check the first ('.') and last ('.' and '~') char
|
||||
// Need to check the first ('.') and last ('.', '~' and ' ') char
|
||||
if (illegalCharacterIndex == kNotFound)
|
||||
{
|
||||
NS_NAMED_LITERAL_CSTRING (illegalFirstChars, ILLEGAL_FOLDER_CHARS_AS_FIRST_LETTER);
|
||||
|
@ -394,7 +394,7 @@ nsresult NS_MsgHashIfNecessary(nsAutoString &name)
|
|||
PRInt32 illegalCharacterIndex = name.FindCharInSet(
|
||||
FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS ILLEGAL_FOLDER_CHARS);
|
||||
|
||||
// Need to check the first ('.') and last ('.' and '~') char
|
||||
// Need to check the first ('.') and last ('.', '~' and ' ') char
|
||||
if (illegalCharacterIndex == kNotFound)
|
||||
{
|
||||
NS_NAMED_LITERAL_STRING (illegalFirstChars, ILLEGAL_FOLDER_CHARS_AS_FIRST_LETTER);
|
||||
|
|
Загрузка…
Ссылка в новой задаче