fix for not loading certain characters correctly in editor file paths

This commit is contained in:
Kyle Drake 2024-09-16 17:04:03 -05:00
parent dee9128cb3
commit 208950df55

View file

@ -219,7 +219,7 @@
$(document).ready(function() { $(document).ready(function() {
$.ajax({ $.ajax({
url: "/site_files/download/<%= Addressable::URI.parse(@filename).normalized_path.to_s %>", url: "/site_files/download/<%= Rack::Utils.escape(@filename) %>",
cache: false, cache: false,
success: function(resp) { success: function(resp) {
editor = ace.edit("editor") editor = ace.edit("editor")