Update to latest version

This commit is contained in:
Reditus committed 2026-05-15 02:18:17 +01:00
1 parent 7125e29993
commit c74ef9cf9c
15 files changed
+191 -70

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ async function saveFile() {
const form = new FormData();
form.append('path', filePath);
form.append('content', editor.value);
const resp = await fetch('/api/files/save', { method: 'POST', body: form });
const resp = await csrfFetch('/api/files/save', { method: 'POST', body: form });
const data = await resp.json();
if (!data.success) {
error.textContent = 'Error: ' + (data.error || 'Failed to save file');