From 29efea9038796624fd82c312ef83d47f5837c984 Mon Sep 17 00:00:00 2001 From: Ian Bicking Date: Tue, 11 Oct 2016 16:29:00 -0500 Subject: [PATCH] Fix #1720, allow view-source URLs --- shared/shot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/shot.js b/shared/shot.js index 6e7104259e..1218121e8a 100644 --- a/shared/shot.js +++ b/shared/shot.js @@ -30,6 +30,9 @@ function isUrl(url) { if ((/^chrome:.*/i).test(url)) { return true; } + if ((/^view-source:/i).test(url)) { + return isUrl(url.substr("view-source:".length)); + } return (/^https?:\/\/[a-z0-9\.\-]+[a-z0-9](:[0-9]+)?\/?/i).test(url); }