Bug 1051221 - Changed way to remove 'view-souce:' in URL using regex-replace instead of substring, used while saving the MathML source page. r=MattN

This commit is contained in:
Harshit Harchani 2014-08-20 04:30:17 +05:30
parent 489904c774
commit 5bce767329

View File

@ -323,7 +323,7 @@ function ViewSourceReload()
// Strips the |view-source:| for internalSave()
function ViewSourceSavePage()
{
internalSave(window.content.location.href.substring(12),
internalSave(window.content.location.href.replace(/^view-source:/i, ""),
null, null, null, null, null, "SaveLinkTitle",
null, null, window.content.document, null, gPageLoader);
}