fix: 修复系统一致性与安全问题

This commit is contained in:
que01 committed 2026-10-14 17:36:46 +08:00
1 parent aaeec14733
commit f158f906d5
19 files changed
+194 -34

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ test("local upload presign targets the API route and requires brand access", asy
{},
{ fileName: "portrait.jpg", contentType: "image/jpeg" },
);
assert.match(result.uploadUrl, /^\/api\/admin\/uploads\/local\?key=\d{4}%2F[a-f0-9]{16}\.jpg$/);
assert.match(result.uploadUrl, /^\/admin\/uploads\/local\?key=\d{4}%2F[a-f0-9]{16}\.jpg$/);
assert.equal(result.mode, "local");
} finally {
for (const [name, value] of [