mirror of
https://github.com/neocities/neocities.git
synced 2025-07-23 11:06:02 +02:00
more fixes for file path
This commit is contained in:
parent
208950df55
commit
48cef121a1
3 changed files with 11 additions and 6 deletions
|
@ -106,6 +106,7 @@ 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