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 671f95b commit 56295b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpmyfaq/src/phpMyFAQ/Helper/UserHelper.php
Expand Up @@ -17,6 +17,7 @@

namespace phpMyFAQ\Helper;

use phpMyFAQ\Strings;
use phpMyFAQ\User;

/**
Expand Down Expand Up @@ -58,7 +59,7 @@ public function getAllUserOptions(int $id = 1, bool $allowBlockedUsers = false):
'<option value="%d" %s>%s (%s)</option>',
$userId,
(($userId === $id) ? 'selected' : ''),
$this->user->getUserData('display_name'),
Strings::htmlentities($this->user->getUserData('display_name')),
$this->user->getLogin()
);
}
Expand Down

0 comments on commit 56295b5

Please sign in to comment.