pandoc/test/command/7861.md
Even Brenden d36a16a4df Don't read files outside of user data directory
If a file path does not exist relative to the working directory, but
it does exist relative to the user data directory, and it exists outside
of the user data directory, do not read it. This applies to readDataFile
and readMetadataFile in PandocMonad and, by extension, any module that
uses these by passing them relative paths.
2022-01-28 08:51:27 -08:00

7 lines
149 B
Markdown

```
% pandoc -s -t native --data-dir=command/7861 --metadata-file=../../7861.yaml
Hello
^D
2> Could not find metadata file ../../7861.yaml
=> 98
```