diff options
-rw-r--r-- | model/Feedback.php | 4 | ||||
-rw-r--r-- | template/assemblies/feedback.phtml | 8 |
2 files changed, 10 insertions, 2 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, )); } diff --git a/template/assemblies/feedback.phtml b/template/assemblies/feedback.phtml index 7577f22..f03148c 100644 --- a/template/assemblies/feedback.phtml +++ b/template/assemblies/feedback.phtml @@ -6,7 +6,8 @@ <div class="col-sm-6 col"> <div class="form-group"> <label for="issuetext">Message / Symptoms*</label> - <input type="text" value="" name="issuetext" id="issuetext" class="form-control" /> + <textarea rows="2" value="" name="issuetext" id="issuetext" class="form-control" style="resize: vertical;" + ></textarea> </div> </div> @@ -143,6 +144,11 @@ <input type="checkbox" name="issues[]" value="Artifacts" /> Artifacts </label> </div> + <div class="checkbox"> + <label> + <input type="checkbox" name="issues[]" value="AV Async" /> Audio/Video async + </label> + </div> </div> </div> |