Skip to content

Commit

Permalink
html escape simple format
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj authored and AlexBTurchyn committed Sep 9, 2024
1 parent 5a1efd0 commit bd853c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/submissions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<div class="flex items-center space-x-1 mt-1">
<span>
Reason:
<%= simple_format(submitter.submission_events.find_by(event_type: :decline_form).data['reason']) %>
<%= simple_format(h(submitter.submission_events.find_by(event_type: :decline_form).data['reason'])) %>
</span>
</div>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/submitter_mailer/declined_email.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p><%= t('hi_there') %>,</p>
<p><%= t('name_declined_by_submitter_with_the_following_reason', name: @submitter.submission.template.name, submitter: @submitter.name || @submitter.email || @submitter.phone) %></p>
<%= simple_format(@submitter.submission_events.find_by(event_type: :decline_form).data['reason']) %>
<%= simple_format(h(@submitter.submission_events.find_by(event_type: :decline_form).data['reason'])) %>
<p><%= link_to t('view'), submission_url(@submitter.submission) %></p>

0 comments on commit bd853c6

Please sign in to comment.