From f62c17ec5c0470b97411cebdeb5be1cfc4bfb62b Mon Sep 17 00:00:00 2001 From: Matthias Klatte Date: Mon, 1 Jul 2024 11:11:14 +0200 Subject: [PATCH] BUGFIX: use correct quotes for character escape sequences Character escape sequences should be enclosed in double quotes. Otherwise the literal characters t, n, r, 0, x, B will be stripped from the input. The SqLiteIndex already implements this behavior correctly. --- Classes/Domain/Service/MysqlIndex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Service/MysqlIndex.php b/Classes/Domain/Service/MysqlIndex.php index 1e245fa..952d056 100644 --- a/Classes/Domain/Service/MysqlIndex.php +++ b/Classes/Domain/Service/MysqlIndex.php @@ -145,8 +145,8 @@ public function insertOrUpdatePropertiesToIndex(array $properties, string $ident $valueNamesString .= $this->preparedStatementArgumentName($statementArgumentNumber) . ', '; $statementArgumentNumber++; } - $propertyColumnNamesString = trim($propertyColumnNamesString, ', \t\n\r\0\x0B'); - $valueNamesString = trim($valueNamesString, ', \t\n\r\0\x0B'); + $propertyColumnNamesString = trim($propertyColumnNamesString, ", \t\n\r\0\x0B"); + $valueNamesString = trim($valueNamesString, ", \t\n\r\0\x0B"); $preparedStatement = $this->connection->prepare('REPLACE INTO "fulltext_objects" (' . $propertyColumnNamesString . ') VALUES (' . $valueNamesString . ')'); $preparedStatement->bindValue(':__identifier__', $identifier);