MCPcopy Create free account
hub / github.com/apache/httpd / ap_getparents

Function ap_getparents

server/util.c:602–608  ·  view source on GitHub ↗

* Parse .. so we don't compromise security */

Source from the content-addressed store, hash-verified

600 * Parse .. so we don't compromise security
601 */
602AP_DECLARE(void) ap_getparents(char *name)
603{
604 if (!ap_normalize_path(name, AP_NORMALIZE_NOT_ABOVE_ROOT |
605 AP_NORMALIZE_ALLOW_RELATIVE)) {
606 name[0] = '\0';
607 }
608}
609
610AP_DECLARE(void) ap_no2slash_ex(char *name, int is_fs_path)
611{

Callers

nothing calls this directly

Calls 1

ap_normalize_pathFunction · 0.85

Tested by

no test coverage detected