From be348159ac00da155fa2ec72847455988a5dafb5 Mon Sep 17 00:00:00 2001 From: "andreas.otte%primus-online.de" Date: Sun, 16 Apr 2000 07:11:43 +0000 Subject: [PATCH] fix bug 34863 [Local Harddisks not found if I tried with C: without \], check for a drive in nsDocShell::ConvertFileToStringURI, r=gagan@netscape.com git-svn-id: svn://10.0.0.236/trunk@66124 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index addadc65a61..5105820f0c6 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -2361,8 +2361,8 @@ NS_IMETHODIMP nsDocShell::ConvertFileToStringURI(nsString& aIn, nsString& aOut) { aOut = aIn; #ifdef XP_PC - // Check for \ in the url-string (PC) - if(kNotFound != aIn.FindChar(PRUnichar('\\'))) + // Check for \ in the url-string or just a drive (PC) + if(kNotFound != aIn.FindChar(PRUnichar('\\')) || ((aIn.Length() == 2 ) && (aIn.Last() == PRUnichar(':') || aIn.Last() == PRUnichar('|')))) { #elif XP_UNIX // Check if it starts with / or \ (UNIX)