mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-09 00:12:21 +02:00
fix(security): enforce registered endpoint authority
Require caller-supplied model endpoints to resolve through enabled owner-visible registrations, harden session path encoding, and remove the SVG title HTML parsing sink.
This commit is contained in:
@@ -435,7 +435,7 @@ function getFolderNames() {
|
||||
async function moveToFolder(sessionId, folderName) {
|
||||
const fd = new FormData();
|
||||
fd.append('folder', folderName || '');
|
||||
await fetch(`${API_BASE}/api/session/${sessionId}`, { method: 'PATCH', body: fd });
|
||||
await fetch(`${API_BASE}/api/session/${encodeURIComponent(sessionId)}`, { method: 'PATCH', body: fd });
|
||||
// Update local data
|
||||
const s = sessions.find(x => x.id === sessionId);
|
||||
if (s) s.folder = folderName || null;
|
||||
|
||||
Reference in New Issue
Block a user