dgaudet 97/09/25 20:19:32
Modified: src CHANGES
src/modules/standard mod_imap.c
Log:
mod_imap only handles GET. Decline the rest so that, say, a PUT action
can be used.
Submitted by: Jay Bloodworth <[EMAIL PROTECTED]>
Reviewed by: Brian Behlendorf, Dean Gaudet, Jim Jagielski
Revision Changes Path
1.448 +2 -0 apachen/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /export/home/cvs/apachen/src/CHANGES,v
retrieving revision 1.447
retrieving revision 1.448
diff -u -r1.447 -r1.448
--- CHANGES 1997/09/26 03:09:39 1.447
+++ CHANGES 1997/09/26 03:19:28 1.448
@@ -1,5 +1,7 @@
Changes with Apache 1.3b1
+ *) mod_imap should only handle GET methods. [Jay Bloodworth]
+
*) suexec.c wouldn't build without -DLOG_EXEC. [Jason A. Dour]
*) mod_autoindex improperly counted &escapes; as more than one
1.32 +6 -1 apachen/src/modules/standard/mod_imap.c
Index: mod_imap.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_imap.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- mod_imap.c 1997/09/18 18:40:54 1.31
+++ mod_imap.c 1997/09/26 03:19:31 1.32
@@ -653,7 +653,12 @@
char *imap_base = icr->imap_base ?
icr->imap_base : IMAP_BASE_DEFAULT;
- FILE *imap = pfopen(r->pool, r->filename, "r");
+ FILE *imap;
+
+ if (r->method_number != M_GET)
+ return DECLINED;
+
+ imap = pfopen(r->pool, r->filename, "r");
if (!imap)
return NOT_FOUND;