From d1cfe6177caff784039107c14a05f349654964ca Mon Sep 17 00:00:00 2001 From: haszi Date: Thu, 23 May 2024 21:56:15 +0200 Subject: [PATCH] Remove html_entity_decode when getting refentry names from the database Refentry names are taken from xml IDs and stored in the database during indexing. These are then retrieved and used for linking to functions and methods. Do not use html_entity_decode on these names as these IDs should not have entities in them to begin with. This change aligns this function with the function/method linking functions that only do strtolower as well. --- phpdotnet/phd/IndexRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpdotnet/phd/IndexRepository.php b/phpdotnet/phd/IndexRepository.php index 2c8e04ef..b0729f6b 100644 --- a/phpdotnet/phd/IndexRepository.php +++ b/phpdotnet/phd/IndexRepository.php @@ -189,7 +189,7 @@ public function getRefNames(): array { private function SQLiteRefname($context, $index, $id, $sdesc): void { - $ref = strtolower(html_entity_decode($sdesc, ENT_QUOTES, 'UTF-8')); + $ref = strtolower($sdesc); $this->refs[$ref] = $id; }