From 1b794c85086c5acba9e94692c97d077dc56e9777 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 1 Jun 2018 12:33:44 -0600 Subject: [PATCH] Update StatusPipeline --- app/Http/Controllers/CommentController.php | 2 +- app/Jobs/StatusPipeline/StatusEntityLexer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/CommentController.php b/app/Http/Controllers/CommentController.php index 790b2214..565ceec5 100644 --- a/app/Http/Controllers/CommentController.php +++ b/app/Http/Controllers/CommentController.php @@ -26,7 +26,7 @@ class CommentController extends Controller $reply = new Status(); $reply->profile_id = $profile->id; $reply->caption = $comment; - $reply->rendered = $comment; + $reply->rendered = e($comment); $reply->in_reply_to_id = $status->id; $reply->in_reply_to_profile_id = $status->profile_id; $reply->save(); diff --git a/app/Jobs/StatusPipeline/StatusEntityLexer.php b/app/Jobs/StatusPipeline/StatusEntityLexer.php index ebbf4ad4..c1d09ccb 100644 --- a/app/Jobs/StatusPipeline/StatusEntityLexer.php +++ b/app/Jobs/StatusPipeline/StatusEntityLexer.php @@ -45,7 +45,7 @@ class StatusEntityLexer implements ShouldQueue public function parseHashtags() { $status = $this->status; - $text = $status->caption; + $text = e($status->caption); $tags = HashtagLexer::getHashtags($text); $rendered = $text; if(count($tags) > 0) {