mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Fix message for unsupported file types
This commit is contained in:
parent
25d0110ad9
commit
0ec3a9a1b2
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ post '/site_files/create' do
|
|||
extname = File.extname name
|
||||
|
||||
unless extname.match /^\.#{Site::EDITABLE_FILE_EXT}/i
|
||||
flash[:error] = "Must be an text editable file type (#{Site::VALID_EDITABLE_EXTENSIONS.join(', ')})."
|
||||
flash[:error] = "Must be an editable text file type (#{Site::VALID_EDITABLE_EXTENSIONS.join(', ')})."
|
||||
redirect redirect_uri
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue