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
This commit is contained in:
andreas.otte%primus-online.de
2000-04-16 07:11:43 +00:00
parent b7b1ee0f64
commit be348159ac

View File

@@ -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)