AliasMatch does not append unmatched parts of the
original URI to the new URI. So no need to subtract
anything from the new URI length.
The existing code crashed when using
"AliasMatch / /some/thing" and sending a request
with a long URI.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1583175 13f79535-47bb-0310-9956-
ffa450edef68
}
}
else {
- int pathlen = strlen(found) -
- (strlen(r->uri + regm[0].rm_eo));
- AP_DEBUG_ASSERT(pathlen >= 0);
- AP_DEBUG_ASSERT(pathlen <= strlen(found));
ap_set_context_info(r,
apr_pstrmemdup(r->pool, r->uri,
regm[0].rm_eo),
apr_pstrmemdup(r->pool, found,
- pathlen));
+ strlen(found)));
}
}
else {