From 909c562183a3051f1cda85ec3e3d19f1355ccded Mon Sep 17 00:00:00 2001 From: dedeibel Date: Tue, 18 Dec 2018 23:43:55 +0100 Subject: Feeback Message as Textarea. Add audio/video async as option. --- model/Feedback.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'model') diff --git a/model/Feedback.php b/model/Feedback.php index 16791eb..f47491b 100644 --- a/model/Feedback.php +++ b/model/Feedback.php @@ -35,6 +35,8 @@ class Feedback VALUES (:reported, :datetime, :net, :os, :player, :stream, :ipproto_v4, :ipproto_v6, :provider, :issues, :issuetext) '); + $issuetext = preg_replace('/\r?\n/', ' ', $info['issuetext']); + $stm->execute(array( 'reported' => time(), 'datetime' => strtotime($info['datetime']), @@ -46,7 +48,7 @@ class Feedback 'ipproto_v6' => isset($info['ipproto']) && is_array($info['ipproto']) && in_array('v6', $info['ipproto']), 'provider' => $info['provider'], 'issues' => isset($info['issues']) && is_array($info['issues']) ? implode(',', $info['issues']) : '', - 'issuetext' => $info['issuetext'], + 'issuetext' => $issuetext, )); } -- cgit v1.2.3