зеркало из https://github.com/mozilla/pjs.git
bug 379314 clarify moz-icon checks, r=timeless
This commit is contained in:
Родитель
efef992a97
Коммит
a33f7deda5
|
@ -307,8 +307,13 @@ nsMozIconURI::SetSpec(const nsACString &aSpec)
|
||||||
{
|
{
|
||||||
nsCAutoString filespec;
|
nsCAutoString filespec;
|
||||||
tmpURI->GetSpec(filespec);
|
tmpURI->GetSpec(filespec);
|
||||||
if (filespec.Length() > 8 && filespec.CharAt(8) != '/')
|
if ( strncmp("file:////", filespec.get(), 9) &&
|
||||||
mFileIcon = tmpURI; // looks good, save the file (bug 376328)
|
strncmp("file:///%", filespec.get(), 9) )
|
||||||
|
{
|
||||||
|
// accept only local files; disallow UNC paths (bug 376328)
|
||||||
|
// and attempts to escape them (bug 386998)
|
||||||
|
mFileIcon = tmpURI;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sizeString.IsEmpty())
|
if (!sizeString.IsEmpty())
|
||||||
|
|
Загрузка…
Ссылка в новой задаче