mirror of
https://github.com/neocities/neocities.git
synced 2025-06-15 17:04:34 +02:00
scrub question marks
This commit is contained in:
parent
4fe0443a10
commit
605fa2cc74
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue