Skip to content

Commit

Permalink
Escape search params JSON in report view
Browse files Browse the repository at this point in the history
Fixes #4459
  • Loading branch information
mjgiarlo committed Jan 17, 2025
1 parent 2b12dad commit 912cdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/report/_document_list.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="mt-3"
data-controller="object-reporter"
data-object-reporter-data-url-value='<%= report_data_url %>'
data-object-reporter-data-url-params-value='<%= params.to_unsafe_h.except(:controller, :action).merge(format: 'json', sort: 'id asc').to_json.html_safe %>'
data-object-reporter-data-url-params-value='<%= json_escape(params.to_unsafe_h.except(:controller, :action).merge(format: 'json', sort: 'id asc').to_json) %>'
data-object-reporter-download-url-value='<%= report_download_url %>'
data-object-reporter-column-model-value='<%= Report::COLUMN_MODEL.to_json.html_safe %>'>

Expand Down

0 comments on commit 912cdb7

Please sign in to comment.