From 563690dba9a8e0f809390ce336e9573e5f6185dd Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 16 May 2019 07:53:28 +0200 Subject: [PATCH] Only attempt to archive URL if it begins with http. --- src/url.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/url.cpp b/src/url.cpp index dc33b31..191c9c7 100644 --- a/src/url.cpp +++ b/src/url.cpp @@ -409,6 +409,11 @@ const string URL::unescape_html(const string &html) const string URL::archive() { + if (_url.substr(0, 4) != "http") + { + return ""; + } + try { std::ostringstream oss;