Skip to content

Commit

Permalink
fix: added missing conversion to HTML entities
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Feb 12, 2023
1 parent 56295b5 commit 49db615
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phpmyfaq/contact.php
Expand Up @@ -49,7 +49,7 @@
'msgContactOwnText' => nl2br(Strings::htmlspecialchars($faqConfig->get('main.contactInformations'))),
'msgContactEMail' => $PMF_LANG['msgContactEMail'],
'msgContactPrivacyNote' => $PMF_LANG['msgContactPrivacyNote'],
'privacyURL' => $faqConfig->get('main.privacyURL'),
'privacyURL' => Strings::htmlentities($faqConfig->get('main.privacyURL')),
'msgPrivacyNote' => $PMF_LANG['msgPrivacyNote'],
'msgNewContentName' => $PMF_LANG['msgNewContentName'],
'msgNewContentMail' => $PMF_LANG['msgNewContentMail'],
Expand Down
4 changes: 2 additions & 2 deletions phpmyfaq/index.php
Expand Up @@ -619,7 +619,7 @@
'msgGlossary' => '<a href="./glossary.html">' . $PMF_LANG['ad_menu_glossary'] . '</a>',
'privacyLink' => sprintf(
'<a target="_blank" href="%s">%s</a>',
$faqConfig->get('main.privacyURL'),
Strings::htmlentities($faqConfig->get('main.privacyURL')),
$PMF_LANG['msgPrivacyNote']
),
'backToHome' => '<a href="./index.html">' . $PMF_LANG['msgHome'] . '</a>',
Expand All @@ -642,7 +642,7 @@
'msgGlossary' => '<a href="index.php?' . $sids . 'action=glossary">' . $PMF_LANG['ad_menu_glossary'] . '</a>',
'privacyLink' => sprintf(
'<a target="_blank" href="%s">%s</a>',
$faqConfig->get('main.privacyURL'),
Strings::htmlentities($faqConfig->get('main.privacyURL')),
$PMF_LANG['msgPrivacyNote']
),
'allCategories' => '<a class="nav-link" href="index.php?' . $sids . 'action=show">' .
Expand Down
3 changes: 2 additions & 1 deletion phpmyfaq/request-removal.php
Expand Up @@ -18,6 +18,7 @@
use phpMyFAQ\Captcha;
use phpMyFAQ\Core\Exception;
use phpMyFAQ\Helper\CaptchaHelper;
use phpMyFAQ\Strings;
use phpMyFAQ\User\CurrentUser;

if (!defined('IS_VALID_PHPMYFAQ')) {
Expand Down Expand Up @@ -50,7 +51,7 @@
'msgContactRemove' => $PMF_LANG['msgContactRemove'],
'msgContactPrivacyNote' => $PMF_LANG['msgContactPrivacyNote'],
'msgPrivacyNote' => $PMF_LANG['msgPrivacyNote'],
'privacyURL' => $faqConfig->get('main.privacyURL'),
'privacyURL' => Strings::htmlentities($faqConfig->get('main.privacyURL')),
'msgNewContentName' => $PMF_LANG['msgNewContentName'],
'msgNewContentMail' => $PMF_LANG['msgNewContentMail'],
'ad_user_loginname' => $PMF_LANG['ad_user_loginname'],
Expand Down

0 comments on commit 49db615

Please sign in to comment.