Skip to content

Commit

Permalink
Merge branch '3.1' into 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Sep 2, 2023
2 parents 5b4fc12 + 332d2e4 commit 04da53d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions phpmyfaq/admin/api/configuration-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use phpMyFAQ\Helper\AdministrationHelper;
use phpMyFAQ\Helper\LanguageHelper;
use phpMyFAQ\Helper\PermissionHelper;
use phpMyFAQ\Strings;
use phpMyFAQ\System;
use phpMyFAQ\Translation;
use phpMyFAQ\Utils;
Expand Down Expand Up @@ -98,7 +99,7 @@ function renderInputForm(mixed $key, string $type): void
is_numeric($value) ? 'number' : $type,
$key,
$key,
$value
Strings::htmlentities($value)
);

if ('api.apiClientToken' === $key) {
Expand Down Expand Up @@ -147,7 +148,7 @@ function renderInputForm(mixed $key, string $type): void
printf(
'<input class="form-control" type="password" autocomplete="off" name="edit[%s]" value="%s">',
$key,
$faqConfig->get($key)
Strings::htmlentities($faqConfig->get($key))
);
echo "</div>\n";
break;
Expand Down
1 change: 1 addition & 0 deletions phpmyfaq/admin/api/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
if (is_array($userdata)) {
$userdata['status'] = $user->getStatus();
$userdata['login'] = Strings::htmlentities($user->getLogin(), ENT_COMPAT);
$userdata['display_name'] = Strings::htmlentities($userdata['display_name'], ENT_COMPAT);
$userdata['is_superadmin'] = $user->isSuperAdmin();
$userdata['auth_source'] = $user->getUserAuthSource();
} else {
Expand Down

0 comments on commit 04da53d

Please sign in to comment.