diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-28 22:34:30 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-12-28 23:08:39 +0100 |
commit | 6df3dc8489ac4105e2a8e41899227991537489e2 (patch) | |
tree | e95cf0cf36c6daf1485695246923c71c565a7ebc /includes/pages/user_questions.php | |
parent | 012d5a47227ad80753fc1178ccc85c3b15dd5c09 (diff) |
questions: Don't strip content from messages
closes #545 ("=" removed in Questions & Answers)
Diffstat (limited to 'includes/pages/user_questions.php')
-rw-r--r-- | includes/pages/user_questions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/pages/user_questions.php b/includes/pages/user_questions.php index 19999577..29925a4f 100644 --- a/includes/pages/user_questions.php +++ b/includes/pages/user_questions.php @@ -29,6 +29,7 @@ function user_questions() 'SELECT * FROM `Questions` WHERE NOT `AID` IS NULL AND `UID`=?', [$user->id] ); + foreach ($answered_questions as &$question) { $answer_user_source = User::find($question['AID']); $question['answer_user'] = User_Nick_render($answer_user_source); @@ -42,8 +43,8 @@ function user_questions() } else { switch ($request->input('action')) { case 'ask': - $question = strip_request_item_nl('question'); - if ($question != '' && $request->hasPostData('submit')) { + $question = request()->get('question'); + if (!empty($question) && $request->hasPostData('submit')) { DB::insert(' INSERT INTO `Questions` (`UID`, `Question`) VALUES (?, ?) |