scrub question marks

This commit is contained in:
Kyle Drake 2024-09-14 13:10:26 -05:00
parent 4fe0443a10
commit 605fa2cc74
2 changed files with 9 additions and 0 deletions

View file

@ -1226,6 +1226,8 @@ class Site < Sequel::Model
raise ArgumentError, 'invalid character for filename' if c < 32
end
# scrub question marks (I should probably just be erroring out for this)
clean_path.gsub!('?', '')
clean_path
end