diff --git a/toolkit/components/viewsource/content/viewSource.js b/toolkit/components/viewsource/content/viewSource.js index 50e3fe58310e..a6dea499b340 100644 --- a/toolkit/components/viewsource/content/viewSource.js +++ b/toolkit/components/viewsource/content/viewSource.js @@ -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); }