You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Mark Cox <mj...@hyperreal.com> on 1996/04/22 11:13:14 UTC

cvs commit: apache/src mod_imap.c

mjc         96/04/22 02:13:12

  Modified:    src       mod_imap.c
  Log:
  Fix mod_imap.c to allow relative URLs when a base is not specified.
  
  Revision  Changes    Path
  1.6       +4 -0      apache/src/mod_imap.c
  
  Index: mod_imap.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_imap.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -C3 -r1.5 -r1.6
  *** mod_imap.c	1996/03/31 01:07:01	1.5
  --- mod_imap.c	1996/04/22 09:13:10	1.6
  ***************
  *** 83,88 ****
  --- 83,90 ----
     *    New:  directive URL "Menu text" [x,y ...]
     *     or:  directive URL x,y ... "Menu text"
     * Map format and menu concept courtesy Joshua Bell, jsbell@acs.ucalgary.ca.
  +  *
  +  * Mark Cox, mark@ukweb.com, Allow relative URLs even when no base specified
     */
    
    #include "httpd.h"
  ***************
  *** 630,635 ****
  --- 632,639 ----
      if (showmenu) {        /* send start of imagemap menu if we're going to */
        menu_header(r, imap_menu);
      }
  + 
  +   imap_url(r, NULL, r->uri, base); /* Fake our base to allow relative URLs */
    
      while (!cfg_getline(input, LARGEBUF, imap)) {
        string_pos = input;   /* always start at the beginning of line */