[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.24.2.3,1.24.2.4

Karl DeBisschop kdebisschop at users.sourceforge.net
Fri Jun 20 22:32:04 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv24087

Modified Files:
      Tag: r1_3_0
	check_http.c 
Log Message:
fix character class for URI_PATH and URI_PORT


Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.24.2.3
retrieving revision 1.24.2.4
diff -C2 -r1.24.2.3 -r1.24.2.4
*** check_http.c	11 Jun 2003 10:39:31 -0000	1.24.2.3
--- check_http.c	21 Jun 2003 05:31:23 -0000	1.24.2.4
***************
*** 181,190 ****
  #define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT)
  
  #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: "
  #define URI_HTTP "%[HTPShtps]://"
  #define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
! #define URI_PORT ":%[-0123456789]"
! #define URI_PATH "%[-_=@,?&#;/.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
! 
  enum {
  	MAX_IPV4_HOSTLENGTH = 255,
--- 181,190 ----
  #define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT)
  
+ /* per RFC 2396 */
  #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: "
  #define URI_HTTP "%[HTPShtps]://"
  #define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
! #define URI_PORT ":%[0123456789]"
! #define URI_PATH "%[-_.!~*'();/?:@&=+$,%#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
  enum {
  	MAX_IPV4_HOSTLENGTH = 255,





More information about the Commits mailing list