[ADD/WIP] Editing support XMPP->Matrix

This commit is contained in:
LDA 2024-06-25 17:20:00 +02:00
commit ae740878c8
13 changed files with 249 additions and 106 deletions

View file

@ -730,12 +730,14 @@ XMLParseAttQuote(XMLexer *lexer)
char *code = NULL;
int c2;
int p2 = XMLInitialiseBuffer(lexer);
while ((c2 = XMLGetc(lexer)) && c2 != EOF)
int j = 0;
while ((c2 = XMLGetc(lexer)) && c2 != EOF && j < 8)
{
if (c2 == ';')
{
break;
}
j++;
}
if (c2 != ';')
{
@ -775,12 +777,14 @@ XMLParseAttDouble(XMLexer *lexer)
char *code = NULL;
int c2;
int p2 = XMLInitialiseBuffer(lexer);
while ((c2 = XMLGetc(lexer)) && c2 != EOF)
int j = 0;
while ((c2 = XMLGetc(lexer)) && c2 != EOF && j < 8)
{
if (c2 == ';')
{
break;
}
j++;
}
if (c2 != ';')
{