9 ms·
A simpler fix might be to canonicalize (i.e. no "..") the public folder path and the requested file path and then ensure the public path is a prefix of the othe
by hombre_fatal 8y ago
A simpler fix might be to canonicalize (i.e. no "..") the public folder path and the requested file path and then ensure the public path is a prefix of the other.
- Kalium 8y agoAny fix also needs to be sure to resolve any symlinks before doing a prefix check.