path_is_safe_for_cran {microCRAN} | R Documentation |
Tests if the requested resource maps to a safe path in the respository, i.e., that it points to '/src/contrib', '/bin/windows/contrib' or '/bin/macosx/contrib', and does not attempt to weasle back out with '..'.
path_is_safe_for_cran(s)
s |
The path to check, typically 'req$PATH_INFO' in a request handler. |
Logical