(encoded: string)
| 495 | |
| 496 | /** A `file=` value as the API receives it: decoded once by the URL parser. */ |
| 497 | const fromQuery = (encoded: string): string => new URLSearchParams(`file=${encoded}`).get('file') ?? ''; |
| 498 | |
| 499 | it('refuses traversal out of the project', () => { |
| 500 | for (const escape of [ |