Explorar el Código

fix URI_PATH to allow ?&#: (more still should be allowed)
fix class to be POSIX compliant


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@546 f882894a-f735-0410-b71e-b25c423dba1c

Karl DeBisschop hace 23 años
padre
commit
893f833ab7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      plugins/check_http.c

+ 3 - 3
plugins/check_http.c

@@ -184,9 +184,9 @@ struct timeval tv;
 
 
 #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: "
 #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: "
 #define URI_HTTP "%[HTPShtps]://"
 #define URI_HTTP "%[HTPShtps]://"
-#define URI_HOST "%[a-zA-Z0-9.-]"
-#define URI_PORT ":%[0-9]"
-#define URI_PATH "%[/a-zA-Z0-9._-=@,]"
+#define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
+#define URI_PORT ":%[-0123456789]"
+#define URI_PATH "%[-_=@,?&#;/.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
 
 
 enum {
 enum {
 	MAX_IPV4_HOSTLENGTH = 255,
 	MAX_IPV4_HOSTLENGTH = 255,