AllowEncodedSlashes path
thanks to FirstBill for pointing that out!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104937
13f79535-47bb-0310-9956-
ffa450edef68
*) Fix the handling of URIs containing %2F when AllowEncodedSlashes
is enabled. Previously, such urls would still be rejected with
- 404. [Jeff Trawick]
+ 404. [Jeff Trawick, Bill Stoddard]
*) mod_rewrite: Fix query string handling for proxied URLs. PR 14518.
[michael teitler <michael.teitler cetelem.fr>,
else {
char decoded;
decoded = x2c(y + 1);
- if (!IS_SLASH(decoded)) {
- *x++ = *y++;
- *x = *y;
+ if (decoded == '\0') {
+ badpath = 1;
}
else {
*x = decoded;
y += 2;
- if (decoded == '\0') {
- badpath = 1;
- }
}
}
}