feat: apply UI/storage/share optimizations and quota improvements
This commit is contained in:
@@ -225,7 +225,7 @@ async function testPathTraversalAttacks() {
|
||||
|
||||
let blocked = 0;
|
||||
for (const attackPath of attackPaths) {
|
||||
const res = await request('GET', `/api/share/${shareCode}/download-url?path=${encodeURIComponent(attackPath)}`);
|
||||
const res = await request('POST', `/api/share/${shareCode}/download-url`, { path: attackPath });
|
||||
|
||||
if (res.status === 403 || res.status === 400) {
|
||||
blocked++;
|
||||
|
||||
Reference in New Issue
Block a user