Actually it was its previous behaviour before it was implemented using
ap_normalize_path() in r1879075.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1879144 13f79535-47bb-0310-9956-
ffa450edef68
*/
AP_DECLARE(void) ap_getparents(char *name)
{
- (void)ap_normalize_path(name, AP_NORMALIZE_ALLOW_RELATIVE);
+ if (!ap_normalize_path(name, AP_NORMALIZE_NOT_ABOVE_ROOT |
+ AP_NORMALIZE_ALLOW_RELATIVE)) {
+ name[0] = '\0';
+ }
}
AP_DECLARE(void) ap_no2slash_ex(char *name, int is_fs_path)