You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1995/07/18 19:59:30 UTC

mod_imap patch

The following patch fixes the segmentation violation when
accessing an image map with a browser that does not 
understand ISMAP, and for those times when you forget to
add the tag. :^) A more comprehensive solution should be
forthcoming when the ability to add HTML attributes is
added. Should we be returning DECLINED instead?

Since we are still patching the release, I am including
patches to Makefile and Configuration to give some
evidence that this has been compiled on NetBSD.


*** Makefile.orig	Tue Jul 18 12:22:37 1995
--- Makefile	Tue Jul 18 12:29:41 1995
***************
*** 70,77 ****
  #EXTRA_LIBS= -lsocket -lbsd -la
  # For HP/Apollo Domain/OS
  #AUX_CFLAGS= -DAPOLLO
! # For FreeBSD/BSDI 2.x; BSDI doesn't need -lcrypt
  #AUX_CFLAGS= -m486
  #EXTRA_LIBS= -lcrypt
  
  # Place here any flags you may need upon linking, such as a flag to
--- 70,79 ----
  #EXTRA_LIBS= -lsocket -lbsd -la
  # For HP/Apollo Domain/OS
  #AUX_CFLAGS= -DAPOLLO
! # For NetBSD/FreeBSD/BSDI 2.x
! # -m486 only if you are running on Intel 486/586
  #AUX_CFLAGS= -m486
+ # BSDI doesn't need -lcrypt
  #EXTRA_LIBS= -lcrypt
  
  # Place here any flags you may need upon linking, such as a flag to
*** Configuration.orig	Tue Jul 18 12:30:22 1995
--- Configuration	Tue Jul 18 12:32:27 1995
***************
*** 88,95 ****
  #EXTRA_LIBS= -lsocket -lbsd -la
  # For HP/Apollo Domain/OS
  #AUX_CFLAGS= -DAPOLLO
! # For FreeBSD/BSDI 2.x; BSDI doesn't need -lcrypt
  #AUX_CFLAGS= -m486
  #EXTRA_LIBS= -lcrypt
  
  ################################################################
--- 88,97 ----
  #EXTRA_LIBS= -lsocket -lbsd -la
  # For HP/Apollo Domain/OS
  #AUX_CFLAGS= -DAPOLLO
! # For NetBSD/FreeBSD/BSDI 2.x
! # -m486 only if you are running on Intel 486/586
  #AUX_CFLAGS= -m486
+ # BSDI doesn't need -lcrypt
  #EXTRA_LIBS= -lcrypt
  
  ################################################################
*** mod_imap.c.orig	Tue Jul 18 12:14:29 1995
--- mod_imap.c	Tue Jul 18 12:21:07 1995
***************
*** 263,269 ****
      char *ycoord;
      char *referer;
  
!     base_uri[0] = '\0';
  
      if (!(ycoord = strchr (r->args, ',')))
  	return BAD_REQUEST;	
--- 263,271 ----
      char *ycoord;
      char *referer;
  
! 
!     if (r->args == NULL)
! 	return SERVER_ERROR;
  
      if (!(ycoord = strchr (r->args, ',')))
  	return BAD_REQUEST;	
***************
*** 276,281 ****
--- 278,284 ----
          return SERVER_ERROR;
      
      referer = table_get (r->headers_in, "Referer");
+     base_uri[0] = '\0';
  
      while ((getline(input, MAXLINE, imap))) {