fix bug 34863 [Local Harddisks not found if I tried with C: without \], check for a drive in nsDocShell::ConvertFileToStringURI, r=gagan@netscape.com

This commit is contained in:
andreas.otte%primus-online.de 2000-04-16 07:11:43 +00:00
Родитель faefc106ed
Коммит 75684271dc
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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