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
Родитель aec4755bc1
Коммит 52c82cf01f
1 изменённых файлов: 4 добавлений и 4 удалений

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

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