Files and paths (IAWL ideas 12, 13, 36): resolved --dest, starter refuses links and escaping paths, Office ZIP entries with trailing dots, proxy matcher ends api/admin/_next at /
- iapl-skills: --dest is compared with the project root after resolving links; a folder that is the root or holds it (.., /) is refused - starter: collectBundle refuses symbolic links (their target would ship in the published bundle); writeFiles refuses absolute or escaping paths - form files: a program inside a DOCX/XLSX is found with trailing dots or spaces (Windows drops them) - proxy matcher: (?!(?:api|admin|_next)(?:/|$)|...) so /administracja, /apis get the proxy; doctor rule proxy-matcher reports the old literal - pnpm: @swc/core in ignoredBuiltDependencies (its postinstall only checks the native binary, already installed) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e821d52d19
commit
498b3dbf38
@@ -367,6 +367,13 @@ describe('3 · refused files leave no submission and send no e-mail', () => {
|
||||
await refused([{ name: 'cv.docx', data: ARCHIVE }], notAcceptable('cv.docx')) // a ZIP that is not a Word file
|
||||
})
|
||||
|
||||
test('a program inside an Office file is found also with trailing dots or spaces (Windows drops them)', async () => {
|
||||
for (const entry of ['word/setup.exe', 'word/setup.exe.', 'word/setup.exe ', 'word/setup.EXE. .', 'word/vbaProject.bin.']) {
|
||||
const data = zip({ '[Content_Types].xml': '<Types/>', 'word/document.xml': '<w:document/>', [entry]: 'x' })
|
||||
await refused([{ name: 'cv.docx', data }], notAcceptable('cv.docx'))
|
||||
}
|
||||
})
|
||||
|
||||
test('extra files: more than the field allows, a file under a key that is no File field', async () => {
|
||||
await refused(
|
||||
[{ name: 'a.pdf', data: PDF }, { name: 'b.pdf', data: PDF }],
|
||||
|
||||
Reference in New Issue
Block a user