Lines Matching refs:pathinfo

243 		char *pathinfo;  in http_response_physical_path_check()  local
248 pathinfo = r->physical.path.ptr + len; in http_response_physical_path_check()
249 if ('/' != *pathinfo) { in http_response_physical_path_check()
250 pathinfo = NULL; in http_response_physical_path_check()
252 else if (pathinfo == r->physical.path.ptr) { /*(basedir is "/")*/ in http_response_physical_path_check()
253 pathinfo = strchr(pathinfo+1, '/'); in http_response_physical_path_check()
258 for (char *pprev = pathinfo; pathinfo; pprev = pathinfo, pathinfo = strchr(pathinfo+1, '/')) { in http_response_physical_path_check()
260 r->physical.path.used = pathinfo - r->physical.path.ptr + 1; in http_response_physical_path_check()
261 *pathinfo = '\0'; in http_response_physical_path_check()
263 *pathinfo = '/'; in http_response_physical_path_check()
266 pathinfo = pathinfo != pprev ? pprev : NULL; in http_response_physical_path_check()
273 if (NULL == pathinfo || !S_ISREG(sce->st.st_mode)) { in http_response_physical_path_check()
281 if (pathinfo) { in http_response_physical_path_check()
282 size_t len = r->physical.path.ptr+pathused-1-pathinfo, reqlen; in http_response_physical_path_check()
285 && buffer_eq_icase_ssn(r->target.ptr + reqlen - len, pathinfo, len)) { in http_response_physical_path_check()
290 buffer_copy_string_len(&r->pathinfo, r->target.ptr + reqlen - len, len); in http_response_physical_path_check()
292 buffer_copy_string_len(&r->pathinfo, pathinfo, len); in http_response_physical_path_check()
300 buffer_truncate(&r->physical.path, (size_t)(pathinfo - r->physical.path.ptr)); in http_response_physical_path_check()
544 BUFFER_INTLEN_PTR(&r->pathinfo)); in http_response_prepare()