Supplementary fix for bug 316177 - don't overrun the end of the command line
git-svn-id: svn://10.0.0.236/trunk@188764 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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=")) ||
|
||||
|
||||
Reference in New Issue
Block a user