Resolves a path from Config.json against the problem folder and refuses
anything that lands outside it, so a crafted Config.json cannot make
polyman read (and upload) files like ../../.ssh/id_rsa.
Names that merely start with two dots, like ..notes.tex, are allowed.
Parameters
problemDir: string
Problem directory path
rel: string
Path from Config.json, relative to the problem folder
Returns string
The absolute path, guaranteed to be inside problemDir
Resolves a path from Config.json against the problem folder and refuses anything that lands outside it, so a crafted Config.json cannot make polyman read (and upload) files like
../../.ssh/id_rsa. Names that merely start with two dots, like..notes.tex, are allowed.