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:
Radosław Smoliński
2026-11-26 20:14:59 +01:00
co-authored by Claude Opus 5.5
parent e821d52d19
commit 498b3dbf38
21 changed files with 252 additions and 26 deletions
+7
View File
@@ -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 }],