Skip to content

Fix tests that use illegal ../ paths

Jacob Vosmaer requested to merge jv-fix-test-working-directories into master

I came across an issue while working on !311 (closed) and !315 (closed) where some tests pass inputs to internal/serving/disk with path traversal. This is not allowed in real life: the gitlab-pages process will always chdir into the pages root.

This MR changes the tests involved to use the same trick we use elsewhere in the project, namely, to change the working directory of the test process.

Edited by Jacob Vosmaer

Merge request reports