summaryrefslogtreecommitdiff
path: root/includes/pages/admin_questions.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-05-31 04:03:19 +0200
committermsquare <msquare@notrademark.de>2019-06-03 20:33:09 +0200
commit4e709d0d236f9ef9cbf0ce9879a16ad5f1415a92 (patch)
tree5c1faf57059ee7025006c36bdc6559322584e280 /includes/pages/admin_questions.php
parente7f10d846e4255f6172835df8a0cb3befa56374f (diff)
Log messages without inline HTML
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r--includes/pages/admin_questions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php
index 7b6ce2ab..0e41390f 100644
--- a/includes/pages/admin_questions.php
+++ b/includes/pages/admin_questions.php
@@ -130,9 +130,9 @@ function admin_questions()
);
engelsystem_log(
'Question '
- . htmlspecialchars($question['Question'])
+ . $question['Question']
. ' answered: '
- . htmlspecialchars($answer)
+ . $answer
);
redirect(page_link_to('admin_questions'));
} else {
@@ -159,7 +159,7 @@ function admin_questions()
);
if (!empty($question)) {
DB::delete('DELETE FROM `Questions` WHERE `QID`=? LIMIT 1', [$question_id]);
- engelsystem_log('Question deleted: ' . htmlspecialchars($question['Question']));
+ engelsystem_log('Question deleted: ' . $question['Question']);
redirect(page_link_to('admin_questions'));
} else {
return error('No question found.', true);