mirror of
https://github.com/neocities/neocities.git
synced 2025-08-22 00:50:56 +02:00
fix for % in filenames
This commit is contained in:
parent
690f2f3c80
commit
a270d266c5
4 changed files with 70 additions and 2 deletions
|
@ -113,7 +113,6 @@ post '/api/upload' do
|
|||
end
|
||||
|
||||
files.each do |file|
|
||||
file[:filename] = Rack::Utils.unescape file[:filename]
|
||||
if !current_site.okay_to_upload?(file)
|
||||
api_error 400, 'invalid_file_type', "#{file[:filename]} is not an allowed file type for free sites, supporter required"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue