зеркало из https://github.com/mozilla/gecko-dev.git
Supplementary fix for bug 316177 - don't overrun the end of the command line
This commit is contained in:
Родитель
479c7d24fb
Коммит
41e3c3eac6
|
@ -1385,7 +1385,7 @@ nsMsgComposeService::Handle(nsICommandLine* aCmdLine)
|
|||
rv = aCmdLine->GetLength(&count);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (count >= found) {
|
||||
if (count > found) {
|
||||
aCmdLine->GetArgument(found + 1, uristr);
|
||||
if (StringBeginsWith(uristr, NS_LITERAL_STRING("mailto:")) ||
|
||||
StringBeginsWith(uristr, NS_LITERAL_STRING("to=")) ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче