Commit 8210845d authored by jan.koester's avatar jan.koester
Browse files

test

parent b0054872
Loading
Loading
Loading
Loading
+6 −0
Changes for editor/src/webedit_api.cpp: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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())