mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
faefc106ed
commit
75684271dc
@ -2361,8 +2361,8 @@ NS_IMETHODIMP nsDocShell::ConvertFileToStringURI(nsString& aIn, nsString& aOut)
|
|||||||
{
|
{
|
||||||
aOut = aIn;
|
aOut = aIn;
|
||||||
#ifdef XP_PC
|
#ifdef XP_PC
|
||||||
// Check for \ in the url-string (PC)
|
// Check for \ in the url-string or just a drive (PC)
|
||||||
if(kNotFound != aIn.FindChar(PRUnichar('\\')))
|
if(kNotFound != aIn.FindChar(PRUnichar('\\')) || ((aIn.Length() == 2 ) && (aIn.Last() == PRUnichar(':') || aIn.Last() == PRUnichar('|'))))
|
||||||
{
|
{
|
||||||
#elif XP_UNIX
|
#elif XP_UNIX
|
||||||
// Check if it starts with / or \ (UNIX)
|
// Check if it starts with / or \ (UNIX)
|
||||||
|
Loading…
Reference in New Issue
Block a user