3 ms·
There's not much context in the story, but I would guess you might want some sanitizing for stuff like ../../../<whatever>/
by tyingq 5y ago
There's not much context in the story, but I would guess you might want some sanitizing for stuff like ../../../<whatever>/
- scwoodal 5y agoI prefer the code do any generating of file/directory names. Too many edge cases with user input when working at the OS level for me to sleep at night. Leverage a lookup that says user input “../../../root” == code generated directory path.