Only attempt to archive URL if it begins with http.

This commit is contained in:
tastytea 2019-05-16 07:53:28 +02:00
parent bb9cff2992
commit 563690dba9
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 0 deletions

View File

@ -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;