From 6291d50a053da715fff70fafa482b3220617bfe4 Mon Sep 17 00:00:00 2001 From: haszi Date: Sat, 25 May 2024 14:42:41 +0200 Subject: [PATCH] Remove html_entity_decode when getting refentry names from the database (#131) 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. Co-authored-by: haszi --- 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; }