You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ke...@apache.org on 2001/11/16 19:15:16 UTC
cvs commit: apache-1.3/src/main http_request.c
keith 01/11/16 10:15:16
Modified: src CHANGES
src/main http_request.c
Log:
Win32's ap_os_is_filename_valid forces a 403 return for
OPTIONS *; fix by making a special case for this request
in directorywalk.
Revision Changes Path
1.1741 +4 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.1740
retrieving revision 1.1741
diff -u -r1.1740 -r1.1741
--- CHANGES 2001/11/11 19:46:38 1.1740
+++ CHANGES 2001/11/16 18:15:16 1.1741
@@ -1,3 +1,7 @@
+Changes with Apache 1.3.24
+
+ *) Win32: Accept OPTIONS * requests. [Keith Wannamaker]
+
Changes with Apache 1.3.23
*) Unixware 7.0 and later did not have a default locking
1.163 +2 -1 apache-1.3/src/main/http_request.c
Index: http_request.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_request.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -r1.162 -r1.163
--- http_request.c 2001/03/09 10:10:27 1.162
+++ http_request.c 2001/11/16 18:15:16 1.163
@@ -417,7 +417,8 @@
ap_no2slash(test_filename);
num_dirs = ap_count_dirs(test_filename);
- if (!ap_os_is_filename_valid(r->filename)) {
+ if (!ap_os_is_filename_valid(r->filename) &&
+ !(r->method_number == M_OPTIONS && !strcmp(r->uri, "*"))) {
ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r,
"Filename is not valid: %s", r->filename);
return HTTP_FORBIDDEN;