Skip to content

Commit 3329379

Browse files
Include sanitized thread bodies in replies and email notifications
1 parent c1d2a1c commit 3329379

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/emails/customer/reply_fancy.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
@if ($thread->source_via == App\Thread::PERSON_USER && $mailbox->before_reply && $loop->first)
6868
<span style="color:#b5b5b5">{{ $mailbox->before_reply }}</span><br><br>
6969
@endif
70-
{!! $thread->body !!}
70+
{!! $thread->getCleanBody() !!}
7171

7272
@action('reply_email.before_signature', $thread, $loop, $threads, $conversation, $mailbox, $threads_count)
7373
@if ($thread->source_via == App\Thread::PERSON_USER && \Eventy::filter('reply_email.include_signature', true, $thread))

resources/views/emails/user/notification.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
@endif
228228
@action('email_notification.before_body', $thread, $user, $conversation)
229229
<div style="font-family:Arial, 'Helvetica Neue', Helvetica, Tahoma, sans-serif; color:#444; font-size:14px; line-height:20px; margin:0; @if ($is_rtl) text-align: right; direction: rtl; unicode-bidi: plaintext; @endif">
230-
{!! $thread->body ?? '' !!}
230+
{!! $thread->getCleanBody() ?? '' !!}
231231
</div>
232232

233233
@if ($thread->has_attachments)

0 commit comments

Comments
 (0)