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 Dec 17, 2022
1 parent fe6e9f0 commit 65d419c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions phpmyfaq/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/.
*
* @package phpMyFAQ
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @package phpMyFAQ
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @copyright 2002-2022 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link https://www.phpmyfaq.de
* @since 2002-09-16
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link https://www.phpmyfaq.de
* @since 2002-09-16
*/

use phpMyFAQ\Captcha;
Expand Down Expand Up @@ -63,7 +63,7 @@
$question = $readonly = '';
if (!is_null($selectedQuestion)) {
$oQuestion = $questionObject->getQuestion($selectedQuestion);
$question = $oQuestion['question'];
$question = Strings::htmlentities($oQuestion['question']);
if (Strings::strlen($question)) {
$readonly = ' readonly';
}
Expand Down

0 comments on commit 65d419c

Please sign in to comment.