From 4e709d0d236f9ef9cbf0ce9879a16ad5f1415a92 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 31 May 2019 04:03:19 +0200 Subject: Log messages without inline HTML --- includes/pages/admin_questions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/pages/admin_questions.php') 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); -- cgit v1.3.1