Skip to content

Commit

Permalink
strip EAD tags out of form values (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro authored and AustinTSchaffer committed Jan 11, 2019
1 parent 823d21e commit bac74ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/views/aeon/_aeon_request_action.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ mapper = AeonRecordMapper.mapper_for(record)
<% if name.casecmp('requests').zero? %>
<% value.each do |request| %>
<% request.each do |request_param, request_value| %>
<input type='hidden' name='<%= request_param %>' value='<%= request_value %>' />
<input type='hidden' name='<%= request_param %>' value='<%= strip_tags(request_value.to_s) %>' />
<% end %>
<% end %>
<% else %>
<input type='hidden' name='<%= name %>' value='<%= value %>' />
<input type='hidden' name='<%= name %>' value='<%= strip_tags(value.to_s) %>' />
<% end %>
<% end %>

Expand Down

0 comments on commit bac74ec

Please sign in to comment.