aboutsummaryrefslogtreecommitdiff
path: root/model/Feedback.php
diff options
context:
space:
mode:
authordedeibel2018-12-18 23:43:55 +0100
committerdedeibel2018-12-19 22:07:30 +0100
commit909c562183a3051f1cda85ec3e3d19f1355ccded (patch)
tree445c27e393ff080026f49b7989c9eda0cfeec8f4 /model/Feedback.php
parentd4b6e004b24d43ccb98f83b79de1d075d748d837 (diff)
Feeback Message as Textarea. Add audio/video async as option.
Diffstat (limited to '')
-rw-r--r--model/Feedback.php4
1 files changed, 3 insertions, 1 deletions
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,
));
}