Skip to content

Commit

Permalink
Remove html_entity_decode when getting refentry names from the database
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
haszi committed May 23, 2024
1 parent 8625d10 commit d1cfe61
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 d1cfe61

Please sign in to comment.