You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sanitize CSV header names like ActiveAdmin does #177
ActiveAdmin 3's CSVBuilder#build runs the column header names through sanitize (the CSV formula-injection guard) as well as the rows. Our build override in lib/active_admin/mongoid/csv_builder.rb still sanitizes rows (through ActiveAdmin's build_row), but writes the header line without it.
Header names are usually developer-defined, so the risk is low. Using sanitize(encode(c.name, options)) keeps the override identical to upstream. A spec should cover a column name starting with =.
Activity