зеркало из https://github.com/mozilla/pjs.git
Fix #28784 - cannot type non ASCII name in url bar to access file
r=nhotta, sr=blizzard
This commit is contained in:
Родитель
aec4755bc1
Коммит
52c82cf01f
|
@ -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;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче