mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
file delete fix for apostrophes fixes #40
This commit is contained in:
parent
cf4edffbe0
commit
a5307448bb
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@
|
|||
<a href="?dir=<%= Rack::Utils.escape file[:path] %>"><i class="fa fa-edit" title="Manage"></i> Manage</a>
|
||||
<% end %>
|
||||
<% if !file[:is_root_index] %>
|
||||
<a href="#" onclick="confirmFileDelete('<%= file[:path] %>')"><i class="fa fa-trash" title="Delete"></i> Delete</a>
|
||||
<a href="#" onclick="confirmFileDelete('<%= file[:path].gsub("'", ''') %>')"><i class="fa fa-trash" title="Delete"></i> Delete</a>
|
||||
<% end %>
|
||||
<% if file[:is_directory] %>
|
||||
<a class="link-overlay" href="?dir=<%= Rack::Utils.escape file[:path] %>" title="View <%= file[:path] %>"></a>
|
||||
|
|
Loading…
Add table
Reference in a new issue