mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 04:47:31 +09:00
[AppCache] Add check for disallowed encoded path separators
This commit is contained in:
parent
6cf5f024c4
commit
6aaea9dde6
1 changed files with 8 additions and 0 deletions
|
|
@ -948,6 +948,14 @@ nsOfflineManifestItem::HandleManifestLine(const nsCString::const_iterator &aBegi
|
||||||
mStrictFileOriginPolicy))
|
mStrictFileOriginPolicy))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Check fallback path for disallowed encoded path separators
|
||||||
|
nsAutoCString path;
|
||||||
|
fallbackURI->GetFilePath(path);
|
||||||
|
if (path.Find("%2f") != kNotFound || path.Find("%2F") != kNotFound) {
|
||||||
|
LogToConsole("Offline cache manifest bad fallback path", this);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
mFallbackURIs.AppendObject(fallbackURI);
|
mFallbackURIs.AppendObject(fallbackURI);
|
||||||
|
|
||||||
AddNamespace(nsIApplicationCacheNamespace::NAMESPACE_FALLBACK,
|
AddNamespace(nsIApplicationCacheNamespace::NAMESPACE_FALLBACK,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue