Loading editor/src/webedit_api.cpp +6 −0 Changes for editor/src/webedit_api.cpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4730,6 +4730,12 @@ namespace { for (const blogi::webedit::EditPlugin *cur = el; cur; cur = cur->nextElement()) { if (auto block = cur->toLlmsBlock()) { logEmbeddedNul(cur, *block); // Observed in the wild as a lone trailing NUL on legacy imported // TextBox content (widget content that predates a fix in the // importer/rich-text save path). A NUL is never meaningful text, // so drop it here rather than let it truncate the downstream // JSON packing in publishToConnectionCore. block->erase(std::remove(block->begin(), block->end(), '\0'), block->end()); appendBlock(blocks, *block); } if (const blogi::webedit::EditPlugin *child = cur->getChildElement()) Loading Loading
editor/src/webedit_api.cpp +6 −0 Changes for editor/src/webedit_api.cpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4730,6 +4730,12 @@ namespace { for (const blogi::webedit::EditPlugin *cur = el; cur; cur = cur->nextElement()) { if (auto block = cur->toLlmsBlock()) { logEmbeddedNul(cur, *block); // Observed in the wild as a lone trailing NUL on legacy imported // TextBox content (widget content that predates a fix in the // importer/rich-text save path). A NUL is never meaningful text, // so drop it here rather than let it truncate the downstream // JSON packing in publishToConnectionCore. block->erase(std::remove(block->begin(), block->end(), '\0'), block->end()); appendBlock(blocks, *block); } if (const blogi::webedit::EditPlugin *child = cur->getChildElement()) Loading