mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for badly behaved browser extension injecting html into user's sites
This commit is contained in:
parent
34ca68f1ae
commit
47bc9788ef
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@
|
|||
return
|
||||
|
||||
var formData = new FormData();
|
||||
var fileContent = new Blob([editor.getValue()], { type: 'text/html' });
|
||||
formData.append('<%= escape_javascript @filename %>', fileContent, '<%= escape_javascript @filename %>');
|
||||
var fileContent = editor.getValue();
|
||||
formData.append('<%= escape_javascript @filename %>', new File([fileContent], '<%= escape_javascript @filename %>', { type: 'text/html' }));
|
||||
formData.append('csrf_token', '<%= escape_javascript csrf_token %>');
|
||||
formData.append('username', '<%= escape_javascript current_site.username %>');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue