Index: htdig/htsearch/htsearch.cc
diff -c htdig/htsearch/htsearch.cc:1.24.2.14 htdig/htsearch/htsearch.cc:1.24.2.15
*** htdig/htsearch/htsearch.cc:1.24.2.14	Wed Jul 25 21:18:11 2001
--- htdig/htsearch/htsearch.cc	Sat Sep  8 20:12:41 2001
***************
*** 8,14 ****
  //
  //
  #if RELEASE
! static char RCSid[] = "$Id: htsearch.cc,v 1.24.2.14 2001/07/26 04:18:11 grdetil Exp $";
  #endif
  
  #include "htsearch.h"
--- 8,14 ----
  //
  //
  #if RELEASE
! static char RCSid[] = "$Id: htsearch.cc,v 1.24.2.15 2001/09/09 03:12:41 ghutchis Exp $";
  #endif
  
  #include "htsearch.h"
***************
*** 78,86 ****
   	switch (c)
   	{
   	    case 'c':
!  		configFile = optarg;
!                  override_config=1;
!  		break;
   	    case 'v':
   		debug++;
   		break;
--- 78,95 ----
   	switch (c)
   	{
   	    case 'c':
! 	      // The default is obviously to do this securely
! 	      // but if people want to shoot themselves in the foot...
! #ifndef ALLOW_INSECURE_CGI_CONFIG
! 	      if (!getenv("REQUEST_METHOD"))
! 		{
! #endif
! 		  configFile = optarg;
! 		  override_config=1;
! #ifndef ALLOW_INSECURE_CGI_CONFIG
! 		}
! #endif
! 	      break;
   	    case 'v':
   		debug++;
   		break;
