Skip to content

Commit

Permalink
Remove html_entity_decode when getting refentry names from the databa…
Browse files Browse the repository at this point in the history
…se (#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 <[email protected]>
  • Loading branch information
haszi and haszi authored May 25, 2024
1 parent 8625d10 commit 6291d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpdotnet/phd/IndexRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6291d50

Please sign in to comment.