dgaudet     97/11/05 03:43:15

  Modified:    src      Tag: APACHE_1_2_X CHANGES mod_imap.c
  Log:
  mod_imap should DECLINE non-GET methods.
  
  Submitted by: Jay Bloodworth <[EMAIL PROTECTED]>
  Reviewed by:  Brian Behlendorf, Dean Gaudet, Ralf Engelschall
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.286.2.58 +3 -0      apache/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.286.2.57
  retrieving revision 1.286.2.58
  diff -u -r1.286.2.57 -r1.286.2.58
  --- CHANGES   1997/11/05 11:40:12     1.286.2.57
  +++ CHANGES   1997/11/05 11:43:13     1.286.2.58
  @@ -1,5 +1,8 @@
   Changes with Apache 1.2.5
   
  +  *) mod_imap should decline all non-GET methods.
  +     [Jay Bloodworth <[EMAIL PROTECTED]>]
  +
     *) suexec.c wouldn't build without -DLOG_EXEC. [Jason A. Dour]
   
     *) mod_userdir was modifying r->finfo in cases where it wasn't setting
  
  
  
  1.21.2.2  +5 -1      apache/src/mod_imap.c
  
  Index: mod_imap.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_imap.c,v
  retrieving revision 1.21.2.1
  retrieving revision 1.21.2.2
  diff -u -r1.21.2.1 -r1.21.2.2
  --- mod_imap.c        1997/08/01 08:48:17     1.21.2.1
  +++ mod_imap.c        1997/11/05 11:43:14     1.21.2.2
  @@ -633,7 +633,11 @@
     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;
  
  
  

Reply via email to