mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Escape query string params
This commit is contained in:
parent
343d6b7c47
commit
128e90398e
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@
|
|||
if(unsavedChanges == false)
|
||||
return
|
||||
$.ajax({
|
||||
url: '/site_files/save/<%= @filename %>?csrf_token=<%= csrf_token %>',
|
||||
url: '/site_files/save/<%= Rack::Utils.escape @filename %>?csrf_token=<%= Rack::Utils.escape csrf_token %>',
|
||||
data: editor.getValue(),
|
||||
processData: false,
|
||||
contentType: false,
|
||||
|
|
Loading…
Add table
Reference in a new issue