Skip to content

Commit 872f08b

Browse files
committed
fix: removed doubled encoded entities
1 parent 5cb43c1 commit 872f08b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

phpmyfaq/src/phpMyFAQ/Faq.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function renderFaqsByCategoryId(int $categoryId, string $orderBy = 'id',
375375

376376
$title = Strings::htmlentities($row->question);
377377
$url = sprintf(
378-
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
378+
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
379379
$this->configuration->getDefaultUrl(),
380380
$sids,
381381
$row->category_id,
@@ -430,7 +430,7 @@ public function renderFaqsByCategoryId(int $categoryId, string $orderBy = 'id',
430430
);
431431

432432
$baseUrl = sprintf(
433-
'%sindex.php?%saction=show&cat=%d&seite=%d',
433+
'%sindex.php?%saction=show&cat=%d&seite=%d',
434434
$this->configuration->getDefaultUrl(),
435435
(empty($sids) ? '' : $sids),
436436
$categoryId,
@@ -1550,7 +1550,7 @@ public function getStickyFaqsData(): array
15501550

15511551
$title = $row->thema;
15521552
$url = sprintf(
1553-
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
1553+
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
15541554
$this->configuration->getDefaultUrl(),
15551555
$sids,
15561556
$row->category_id,

phpmyfaq/src/phpMyFAQ/Faq/Statistics.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function getLatestData(int $count = PMF_NUMBER_RECORDS_LATEST, ?string $l
265265

266266
$title = $row->question;
267267
$url = sprintf(
268-
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
268+
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
269269
$this->configuration->getDefaultUrl(),
270270
$sids,
271271
$row->category_id,
@@ -372,7 +372,7 @@ public function getTrendingData(int $count = PMF_NUMBER_RECORDS_TRENDING, ?strin
372372

373373
$title = $row->question;
374374
$url = sprintf(
375-
'%sindex.php?action=faq&cat=%d&id=%d&artlang=%s',
375+
'%sindex.php?action=faq&cat=%d&id=%d&artlang=%s',
376376
$this->configuration->getDefaultUrl(),
377377
$row->category_id,
378378
$row->id,
@@ -491,7 +491,7 @@ public function getTopTenData(
491491

492492
$title = $row->question;
493493
$url = sprintf(
494-
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
494+
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
495495
$this->configuration->getDefaultUrl(),
496496
$sids,
497497
$row->category_id,
@@ -601,7 +601,7 @@ public function getTopVotedData(int $count = PMF_NUMBER_RECORDS_TOPTEN, ?string
601601

602602
$title = $row->thema;
603603
$url = sprintf(
604-
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
604+
'%sindex.php?%saction=faq&cat=%d&id=%d&artlang=%s',
605605
$this->configuration->getDefaultUrl(),
606606
$sids,
607607
$row->category_id,

0 commit comments

Comments
 (0)