From 16aa5a29e707db45534f593e41db533cc9c62eb0 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Thu, 22 Jul 1999 22:34:28 +0000 Subject: [PATCH] Fix for bug 10028. We handle mixed case mailto urls properly now. git-svn-id: svn://10.0.0.236/trunk@40723 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsGenericElement.cpp | 2 +- mozilla/docshell/base/nsWebShell.cpp | 2 +- mozilla/layout/base/src/nsGenericElement.cpp | 2 +- mozilla/webshell/src/nsWebShell.cpp | 2 +- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/content/base/src/nsGenericElement.cpp b/mozilla/content/base/src/nsGenericElement.cpp index e764a708150..9a0f3c2853c 100644 --- a/mozilla/content/base/src/nsGenericElement.cpp +++ b/mozilla/content/base/src/nsGenericElement.cpp @@ -1227,7 +1227,7 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext, // mailto: protocol. Note: This s'd go away after NECKO lands PRInt32 offset = -1; - offset = aURLSpec.Find("mailto"); + offset = aURLSpec.Find("mailto", PR_TRUE); if (offset >= 0) absURLSpec = aURLSpec; diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index d11960fa0da..792d95ba9dd 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -2000,7 +2000,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, //Take care of mailto: url nsIWebShell * root= nsnull; - PRInt32 index = urlSpec.Find("mailto:"); + PRInt32 index = urlSpec.Find("mailto:", PR_TRUE); PRBool isMail= PR_FALSE, isBrowser = PR_FALSE; if (index == 0) { isMail = PR_TRUE; diff --git a/mozilla/layout/base/src/nsGenericElement.cpp b/mozilla/layout/base/src/nsGenericElement.cpp index e764a708150..9a0f3c2853c 100644 --- a/mozilla/layout/base/src/nsGenericElement.cpp +++ b/mozilla/layout/base/src/nsGenericElement.cpp @@ -1227,7 +1227,7 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext, // mailto: protocol. Note: This s'd go away after NECKO lands PRInt32 offset = -1; - offset = aURLSpec.Find("mailto"); + offset = aURLSpec.Find("mailto", PR_TRUE); if (offset >= 0) absURLSpec = aURLSpec; diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index d11960fa0da..792d95ba9dd 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -2000,7 +2000,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, //Take care of mailto: url nsIWebShell * root= nsnull; - PRInt32 index = urlSpec.Find("mailto:"); + PRInt32 index = urlSpec.Find("mailto:", PR_TRUE); PRBool isMail= PR_FALSE, isBrowser = PR_FALSE; if (index == 0) { isMail = PR_TRUE; diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 855c7bc8a94..1717b597086 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -2769,7 +2769,7 @@ nsWebShellWindow::HandleUrl(const PRUnichar * aCommand, const PRUnichar * aURLSp if (offset <= 0) return NS_ERROR_FAILURE; - PRInt32 offset2= url.Find("mailto:"); + PRInt32 offset2= url.Find("mailto:", PR_TRUE); PRInt32 ret=0; if (offset2 == 0) {