Mailing List Archive

cvs commit: apache-1.3/src/modules/standard mod_autoindex.c
jim 98/05/03 09:46:50

Modified: . STATUS
src CHANGES
src/modules/standard mod_autoindex.c
Log:
PR: 2112
Submitted by: Jim Jagielski
Reviewed by: Dean Gaudet, Ralf Engelschall

Revision Changes Path
1.354 +1 -5 apache-1.3/STATUS

Index: STATUS
===================================================================
RCS file: /export/home/cvs/apache-1.3/STATUS,v
retrieving revision 1.353
retrieving revision 1.354
diff -u -r1.353 -r1.354
--- STATUS 1998/05/03 16:29:38 1.353
+++ STATUS 1998/05/03 16:46:47 1.354
@@ -82,6 +82,7 @@
* Ben's WIN32: Make roots of filesystems (e.g. c:/) work, PR#1558
* Ben's WIN32: Extensive overhaul of the way UNCs are handled.
* Ralf's fix for referer/agent log entries in installed httpd.conf, PR#2175
+ * Jim's fix for MIME type case sensitivity disparity, PR#2112

Available Patches:

@@ -136,11 +137,6 @@
CustomLog-like tailoring of directory listing formats

FINAL RELEASE SHOWSTOPPERS:
-
- * MIME type case sensitivity disparity between 1.2.6 and 1.3b6 (PR #2112)
- mod_autoindex should lowercase the mime-type when comparing
- [PATCH] <199805030057.UAA03270@devsys.jaguNET.com>
- Status: Jim, Dean +1

* proxy security fixes from 1.2.5 need to be brought forward
Jim: What are these?



1.810 +4 -1 apache-1.3/src/CHANGES

Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.809
retrieving revision 1.810
diff -u -r1.809 -r1.810
--- CHANGES 1998/05/03 10:22:29 1.809
+++ CHANGES 1998/05/03 16:46:48 1.810
@@ -1,5 +1,8 @@
Changes with Apache 1.3b7
-
+
+ *) mod_autoindex's find_itme() was sensitive to MIME type case.
+ [Jim Jagielski] PR#2112
+
*) Make sure the referer_log and agent_log entries in the default httpd.conf
file are also adjusted for the actual relative installation paths.
[Ralf S. Engelschall] PR#2175



1.76 +2 -2 apache-1.3/src/modules/standard/mod_autoindex.c

Index: mod_autoindex.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_autoindex.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- mod_autoindex.c 1998/04/15 17:09:29 1.75
+++ mod_autoindex.c 1998/05/03 16:46:50 1.76
@@ -437,13 +437,13 @@
else if (!path_only) {
if (!content_encoding) {
if (p->type == BY_TYPE) {
- if (content_type && !ap_strcmp_match(content_type, p->apply_to))
+ if (content_type && !ap_strcasecmp_match(content_type, p->apply_to))
return p->data;
}
}
else {
if (p->type == BY_ENCODING) {
- if (!ap_strcmp_match(content_encoding, p->apply_to))
+ if (!ap_strcasecmp_match(content_encoding, p->apply_to))
return p->data;
}
}