Fix an another indexing edge case.

This commit is contained in:
Relintai 2021-11-21 11:15:21 +01:00
parent 4a947d39b0
commit 35fd8d7894

View File

@ -207,6 +207,11 @@ void HTMLParserTag::process() {
// grab the tag itself // grab the tag itself
tag = tag_text.substr(0, fspc_index); tag = tag_text.substr(0, fspc_index);
if (fspc_index + 1 == tag_text.size()) {
//no args, but had a space like <br />
return;
}
String args = tag_text.substr(fspc_index + 1, tag_text.size() - fspc_index - 1); String args = tag_text.substr(fspc_index + 1, tag_text.size() - fspc_index - 1);
parse_args(args); parse_args(args);
} }