Loading src/html.cpp +11 −1 Original line number Diff line number Diff line Loading @@ -464,6 +464,11 @@ void libhtmlpp::HtmlString::_buildTree() { } ++ii; } if (ii == _Data.size()) { throw excp[HTMLException::Error] << "Parsing error: Missing </script closing tag."; } }else if( (ii+3) < _Data.size() && std::equal(_Data.begin()+ii,_Data.begin()+(ii+3),"<svg")){ size_t start=ii; Loading Loading @@ -494,6 +499,11 @@ void libhtmlpp::HtmlString::_buildTree() { } ++ii; } if (ii == _Data.size()) { throw excp[HTMLException::Error] << "Parsing error: Missing </textarea closing tag."; } }else if( (ii + 9) <= _Data.size() && std::equal(_Data.begin()+ii,_Data.begin()+(ii+9),"<textarea")){ size_t start = ii; while(ii < _Data.size()){ Loading @@ -512,7 +522,7 @@ void libhtmlpp::HtmlString::_buildTree() { } if (ii == _Data.size()) { throw excp[HTMLException::Error] << "Parsing error: Unclosed <textarea tag."; throw excp[HTMLException::Error] << "Parsing error: Unclosed <svg tag."; } size_t close = ++ii; Loading Loading
src/html.cpp +11 −1 Original line number Diff line number Diff line Loading @@ -464,6 +464,11 @@ void libhtmlpp::HtmlString::_buildTree() { } ++ii; } if (ii == _Data.size()) { throw excp[HTMLException::Error] << "Parsing error: Missing </script closing tag."; } }else if( (ii+3) < _Data.size() && std::equal(_Data.begin()+ii,_Data.begin()+(ii+3),"<svg")){ size_t start=ii; Loading Loading @@ -494,6 +499,11 @@ void libhtmlpp::HtmlString::_buildTree() { } ++ii; } if (ii == _Data.size()) { throw excp[HTMLException::Error] << "Parsing error: Missing </textarea closing tag."; } }else if( (ii + 9) <= _Data.size() && std::equal(_Data.begin()+ii,_Data.begin()+(ii+9),"<textarea")){ size_t start = ii; while(ii < _Data.size()){ Loading @@ -512,7 +522,7 @@ void libhtmlpp::HtmlString::_buildTree() { } if (ii == _Data.size()) { throw excp[HTMLException::Error] << "Parsing error: Unclosed <textarea tag."; throw excp[HTMLException::Error] << "Parsing error: Unclosed <svg tag."; } size_t close = ++ii; Loading