git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92401
13f79535-47bb-0310-9956-
ffa450edef68
int res;
char *seg_name;
char *delim;
+ int temp_slash=0;
/* We have no trailing slash, but we sure would appreciate one...
*/
if (sec_idx && r->filename[filename_len-1] != '/') {
r->filename[filename_len++] = '/';
r->filename[filename_len] = 0;
+ temp_slash=1;
}
/* Begin *this* level by looking for matching <Directory> sections
/* That temporary trailing slash was useful, now drop it.
*/
- if (seg > startseg) {
+ if (temp_slash) {
r->filename[--filename_len] = '\0';
}