Skip to content

Commit

Permalink
beware quotes in institution name (#3643)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorom authored May 14, 2024
1 parent 7622043 commit c059eb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/authentications/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
<% else %>
<div class="info">
<span><%= institution.name %></span>
<button onclick="showInstitutionInfoWindow('<%= institution.name %>')">
<%# several institutions have a single quote in their name, this also works if a double quote should arise in future %>
<button onclick='showInstitutionInfoWindow("<%= institution.name.gsub('"', '\"') %>")'>
<span class="fa fa-info-circle" aria-hidden="true"></span>
</button>
</div>
Expand Down

0 comments on commit c059eb0

Please sign in to comment.