1
0
Fork 0

Fix f5ffd47: Don't skip separator while reading a record (#14083)

pull/14084/head
Loïc Guilloux 2025-04-23 17:30:51 +02:00 committed by GitHub
parent 6d5aee0545
commit f8bdc1e612
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1006,7 +1006,8 @@ static void DecodeEncodedString(StringConsumer &consumer, bool game_script, Stri
}
while (consumer.AnyBytesLeft()) {
StringConsumer record(consumer.ReadUntilUtf8(SCC_RECORD_SEPARATOR, StringConsumer::SKIP_ONE_SEPARATOR));
consumer.SkipUtf8If(SCC_RECORD_SEPARATOR);
StringConsumer record(consumer.ReadUntilUtf8(SCC_RECORD_SEPARATOR, StringConsumer::KEEP_SEPARATOR));
if (!record.AnyBytesLeft()) {
/* This is an empty parameter. */