Skip to content

Commit 99cc869

Browse files
committed
fix: removed doubled encoded entities
1 parent e5589fe commit 99cc869

23 files changed

+40
-40
lines changed

phpmyfaq/admin/attachments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
$crumbs = array_slice($allCrumbs, ($page - 1) * $itemsPerPage, $itemsPerPage);
4848

4949
$baseUrl = sprintf(
50-
'%sadmin/?action=attachments&page=%d',
50+
'%sadmin/?action=attachments&page=%d',
5151
$faqConfig->getDefaultUrl(),
5252
$page
5353
);

phpmyfaq/admin/statistics.admin-log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
$pages = round(($logging->getNumberOfEntries() + ($itemsPerPage / 3)) / $itemsPerPage, 0);
5454
}
5555

56-
$baseUrl = sprintf('%sadmin/?action=adminlog&page=%d', $faqConfig->getDefaultUrl(), $page);
56+
$baseUrl = sprintf('%sadmin/?action=adminlog&page=%d', $faqConfig->getDefaultUrl(), $page);
5757

5858
// Pagination options
5959
$options = [

phpmyfaq/admin/statistics.search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
$end = $start + $perPage;
6161

6262
$baseUrl = sprintf(
63-
'%sadmin/?action=searchstats&page=%d',
63+
'%sadmin/?action=searchstats&page=%d',
6464
$faqConfig->getDefaultUrl(),
6565
$page
6666
);

phpmyfaq/admin/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
$firstPage = $lastPage - $perPage;
7474

7575
$baseUrl = sprintf(
76-
'%sadmin/?action=user&user_action=listallusers&page=%d',
76+
'%sadmin/?action=user&user_action=listallusers&page=%d',
7777
$faqConfig->getDefaultUrl(),
7878
$page
7979
);

phpmyfaq/glossary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
$itemsPerPage = 8;
4444

4545
$baseUrl = sprintf(
46-
'%sindex.php?action=glossary&page=%d',
46+
'%sindex.php?action=glossary&page=%d',
4747
$faqConfig->getDefaultUrl(),
4848
$page
4949
);

phpmyfaq/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@
281281
if ($faqSession->getCurrentSessionId() > 0) {
282282
$faqSession->setCookie(Session::PMF_COOKIE_NAME_SESSIONID, $faqSession->getCurrentSessionId());
283283
if (is_null($sidCookie)) {
284-
$sids = sprintf('sid=%d&lang=%s&', $faqSession->getCurrentSessionId(), $faqLangCode);
284+
$sids = sprintf('sid=%d&lang=%s&', $faqSession->getCurrentSessionId(), $faqLangCode);
285285
}
286286
} elseif (is_null($sidGet) || is_null($sidCookie)) {
287287
if (is_null($sidCookie) && !is_null($sidGet)) {
288-
$sids = sprintf('sid=%d&lang=%s&', $sidGet, $faqLangCode);
288+
$sids = sprintf('sid=%d&lang=%s&', $sidGet, $faqLangCode);
289289
}
290290
}
291291
} elseif (
@@ -295,7 +295,7 @@
295295
$request->server->get('REQUEST_TIME') + 3600
296296
)
297297
) {
298-
$sids = sprintf('lang=%s&', $faqLangCode);
298+
$sids = sprintf('lang=%s&', $faqLangCode);
299299
}
300300

301301
//

phpmyfaq/news.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$editThisEntry = '';
8989
if ($user->perm->hasPermission($user->getUserId(), PermissionType::NEWS_EDIT)) {
9090
$editThisEntry = sprintf(
91-
'<a href="./admin/index.php?action=news&amp;do=edit&amp;id=%d">%s</a>',
91+
'<a href="./admin/index.php?action=news&do=edit&id=%d">%s</a>',
9292
$newsId,
9393
Translation::get('ad_menu_news_edit')
9494
);

phpmyfaq/search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
// Search only on current language (default)
7575
if ($inputLanguage !== '') {
7676
$allLanguages = true;
77-
$languages = '&amp;langs=all';
77+
$languages = '&langs=all';
7878
} else {
7979
$allLanguages = false;
8080
$languages = '';
@@ -224,7 +224,7 @@
224224

225225
// Set base URL scheme
226226
$baseUrl = sprintf(
227-
'%ssearch.html?search=%s&amp;seite=%d%s&amp;pmf-search-category=%d',
227+
'%ssearch.html?search=%s&seite=%d%s&pmf-search-category=%d',
228228
$faqConfig->getDefaultUrl(),
229229
urlencode($inputSearchTerm),
230230
$page,

phpmyfaq/show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
$up = '';
9292
if ($categoryData->getId() !== 0) {
9393
$url = sprintf(
94-
'%sindex.php?%saction=show&amp;cat=%d',
94+
'%sindex.php?%saction=show&cat=%d',
9595
$faqConfig->getDefaultUrl(),
9696
$sids,
9797
$categoryData->getParentId()

phpmyfaq/src/phpMyFAQ/Bookmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getBookmarkList(): array
129129
$faqData = $faq->faqRecord;
130130

131131
$url = sprintf(
132-
'%sindex.php?action=faq&amp;id=%d&cat=%d&artlang=%s',
132+
'%sindex.php?action=faq&id=%d&cat=%d&artlang=%s',
133133
$this->configuration->getDefaultUrl(),
134134
$faqData['id'],
135135
$category->getCategoryIdFromFaq($faqData['id']),

0 commit comments

Comments
 (0)