зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1074485 - Reflected Cross-Site Scripting (XSS) on about:cache context and storage request variables, r=MattN
This commit is contained in:
Родитель
9f951c606a
Коммит
ebdb1881ef
|
@ -185,13 +185,17 @@ nsAboutCache::FireVisitStorage()
|
|||
rv = VisitStorage(mStorageName);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (mLoadInfo) {
|
||||
char* escaped = nsEscapeHTML(mStorageName.get());
|
||||
mBuffer.Append(
|
||||
nsPrintfCString("<p>Unrecognized storage name '%s' in about:cache URL</p>",
|
||||
mStorageName.get()));
|
||||
escaped));
|
||||
nsMemory::Free(escaped);
|
||||
} else {
|
||||
char* escaped = nsEscapeHTML(mContextString.get());
|
||||
mBuffer.Append(
|
||||
nsPrintfCString("<p>Unrecognized context key '%s' in about:cache URL</p>",
|
||||
mContextString.get()));
|
||||
escaped));
|
||||
nsMemory::Free(escaped);
|
||||
}
|
||||
|
||||
FlushBuffer();
|
||||
|
|
Загрузка…
Ссылка в новой задаче