Only attempt to archive URL if it begins with http.
This commit is contained in:
parent
bb9cff2992
commit
563690dba9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user