Strip HTML from email notifications. Fixes #2935
This commit is contained in:
@@ -78,7 +78,7 @@ class NewIncidentNotification extends Notification
|
||||
->greeting(trans('notifications.incident.new.mail.greeting', ['app_name' => Config::get('setting.app_name')]))
|
||||
->line($content)
|
||||
->action(trans('notifications.incident.new.mail.action'), cachet_route('incident', [$this->incident]))
|
||||
->line($this->incident->message)
|
||||
->line($this->incident->raw_message)
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]))
|
||||
->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)]));
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class IncidentUpdatedNotification extends Notification
|
||||
]))
|
||||
->line($content)
|
||||
->action(trans('notifications.incident.update.mail.action'), cachet_route('incident', [$this->update->incident]))
|
||||
->line($this->update->message)
|
||||
->line($this->update->raw_message)
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]))
|
||||
->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user