responses for rewriting rules which resulted in a local path.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95357
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.25
+ *) Fix a problem in mod_rewrite which would lead to 400 Bad Request
+ responses for rewriting rules which resulted in a local path.
+ [Martin Kraemer]
+
*) Disallow anything but whitespace on the request line after the
HTTP/x.y protocol string. That prevents arbitrary user input
from ending up in the access_log and error_log. Also, special
rewritelog(r, 2, "local path result: %s", r->filename);
/* the filename has to start with a slash! */
- if (ap_os_is_path_absolute(r->filename)) {
+ if (!ap_os_is_path_absolute(r->filename)) {
return BAD_REQUEST;
}
}
/* the filename has to start with a slash! */
- if (ap_os_is_path_absolute(r->filename)) {
+ if (!ap_os_is_path_absolute(r->filename)) {
return BAD_REQUEST;
}