You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Behlendorf <br...@organic.com> on 1995/10/04 08:03:53 UTC

imap fix...

I was running into a bug where the Location: returned for some imagemap
accesses was not a complete URL, but a relative one - Netscape handled it
fine (aarg!  in violation of the spec) but other conforming browsers didn't
like it (funny watching XMosaic try and FTP to "." :) Turns out this was just
for "default" entries - Randy (and other imagemap gurus) - what do you think
of this fix? 


*** mod_imap.c.old      Fri Sep  8 12:20:57 1995
--- mod_imap.c          Wed Oct  4 00:37:43 1995
***************
*** 424,430 ****
  
      if (mapdflt[0]) {
  
!       table_set (r->headers_out, "Location", mapdflt);
          fclose(imap);
        return REDIRECT;
      }
--- 424,430 ----
  
      if (mapdflt[0]) {
  
!       set_redirect (r, base_uri, mapdflt);
          fclose(imap);
        return REDIRECT;
      }



	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/