mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
fixes for file upload response
This commit is contained in:
parent
f4c812d0df
commit
badfc671d9
5 changed files with 19 additions and 15 deletions
|
@ -1,15 +1,5 @@
|
|||
get '/dashboard' do
|
||||
require_login
|
||||
|
||||
if params[:dir] && params[:dir][0] != '/'
|
||||
params[:dir] = '/'+params[:dir]
|
||||
end
|
||||
|
||||
if !File.directory?(current_site.files_path(params[:dir]))
|
||||
redirect '/dashboard'
|
||||
end
|
||||
|
||||
@dir = params[:dir]
|
||||
@file_list = current_site.file_list @dir
|
||||
dashboard_init
|
||||
erb :'dashboard'
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue