Fix for dir with spaces issues

This commit is contained in:
Kyle Drake 2016-04-25 17:59:57 -07:00
parent 8556f7f551
commit 0baacf1d10

View file

@ -120,7 +120,7 @@
if(unsavedChanges == false) if(unsavedChanges == false)
return return
$.ajax({ $.ajax({
url: '/site_files/save/<%= Rack::Utils.escape @filename %>?csrf_token=<%= Rack::Utils.escape csrf_token %>', url: '/site_files/save/<%= @filename %>?csrf_token=<%= Rack::Utils.escape csrf_token %>',
data: editor.getValue(), data: editor.getValue(),
processData: false, processData: false,
contentType: false, contentType: false,