mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Supplementary fix for bug 316177 - don't overrun the end of the command line
This commit is contained in:
parent
479c7d24fb
commit
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=")) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user