Fixed off-by-one bug in remove_html_tags().

This commit is contained in:
tastytea 2019-05-17 03:00:07 +02:00
parent a3eb01ff2e
commit 15af9633bf
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -118,6 +118,10 @@ const string URI::remove_html_tags(const string &html)
size_t endpos = html.find('>', startpos);
out += html.substr(pos, startpos - pos);
pos = endpos;
if (pos != std::string::npos)
{
++pos;
}
}
return out;