diff options
-rw-r--r-- | protocols/FacebookRM/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/utils.cpp b/protocols/FacebookRM/src/utils.cpp index 5cafafc3e8..36d72a865f 100644 --- a/protocols/FacebookRM/src/utils.cpp +++ b/protocols/FacebookRM/src/utils.cpp @@ -302,7 +302,7 @@ std::string utils::text::remove_html(std::string data) for (std::string::size_type i = 0; i < data.length(); i++)
{
- if (data.at(i) == '<' && data.at(i+1) != ' ')
+ if (data.at(i) == '<' && (i+1) < data.length() && data.at(i+1) != ' ')
{
i = data.find(">", i);
if (i == std::string::npos)
|