From 577b084b8addf05be407417edb1d649675d63c8a Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Sat, 1 Jun 2024 09:21:33 +0200 Subject: [PATCH] sanitize --- app/views/admin/university/people/_list.html.erb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/admin/university/people/_list.html.erb b/app/views/admin/university/people/_list.html.erb index 1bf240457..ead4811c0 100644 --- a/app/views/admin/university/people/_list.html.erb +++ b/app/views/admin/university/people/_list.html.erb @@ -38,9 +38,8 @@ <%= image_tag 'avatar-neutral.png', class: 'card-img-top' %> <% end %> <div class="card-body"> - <p><%= person %></p> - <p class="small text-muted mb-0"><%= person.summary %></p> - <%= link_to t('show'), admin_university_person_path(person), class: 'action stretched-link' %> + <p class="mb-0"><%= link_to person, admin_university_person_path(person), class: 'text-black stretched-link' %></p> + <p class="small text-muted mb-0"><%= sanitize person.summary %></p> </div> </div> </div> @@ -64,7 +63,7 @@ <td> <%= link_to person, admin_university_person_path(person) %> </td> - <td><%= person.summary %></td> + <td><%= sanitize person.summary %></td> <td> <%= kamifusen_tag person.best_picture, width: 60, class: 'rounded-circle' if person.best_picture.attached? %> -- GitLab