fix: 修复系统一致性与安全问题
This commit is contained in:
1 parent
aaeec14733
commit
f158f906d5
19 files changed
+194
-34
No files matched your search
@@ -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 [
|
||||
|
||||
Reference in new issue
Block a user