Convert QR codes filenames to ASCII for trans-encoding support
All checks were successful
CI / scan_ruby (push) Successful in 21s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 15s
CI / test (push) Successful in 40s

This commit is contained in:
sto
2026-03-10 10:30:09 +01:00
parent 589e46c1fd
commit ee65212f57

View File

@@ -151,7 +151,7 @@ class ContestantsController < ApplicationController
stringio = Zip::OutputStream.write_buffer do |zio|
@contestants.each do |contestant|
zio.put_next_entry("#{@contest.friendly_id}_#{contestant.name}.svg")
zio.put_next_entry("#{@contest.friendly_id}_#{ActiveSupport::Inflector.transliterate contestant.name.downcase.gsub(/\s/, "_")}.svg")
zio.write contestant.qrcode
end
end