Fix #28784 - cannot type non ASCII name in url bar to access file

r=nhotta, sr=blizzard
This commit is contained in:
chak%netscape.com 2001-05-10 02:40:18 +00:00
parent d6e35f842e
commit 4173daa74c

View File

@ -66,13 +66,13 @@ NS_IMETHODIMP nsDefaultURIFixup::CreateFixupURI(const PRUnichar *aStringURI, nsI
// Eliminate embedded newlines, which single-line text fields now allow:
uriString.StripChars("\r\n");
// Just try to create an URL out of it
NS_NewURI(aURI, uriString, nsnull);
// Check for if it is a file URL
FileURIFixup(uriString.GetUnicode(), aURI);
if(*aURI)
return NS_OK;
// Check for if it is a file URL
FileURIFixup(uriString.GetUnicode(), aURI);
// Just try to create an URL out of it
NS_NewURI(aURI, uriString, nsnull);
if(*aURI)
return NS_OK;