From 893f833ab7c90b1d10fcaa5c14e65b69d37c72e9 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Wed, 11 Jun 2003 10:41:46 +0000 Subject: [PATCH] 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 --- plugins/check_http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/check_http.c b/plugins/check_http.c index 91cc48c..35ca748 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -184,9 +184,9 @@ struct timeval tv; #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " #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 { MAX_IPV4_HOSTLENGTH = 255, -- 2.30.2