From 3f72682fd748f921503f0bf40e7f55506a39a400 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Wed, 11 Jun 2003 10:39:31 +0000 Subject: character classes were wrong for URI_PATH etc: 1) must include ?&#; for PATH 2) POSIX states "If a '-' is in the scanlist and is not the first character, nor the second where the first character is a '^' , nor the last character, the behavior is implementation-defined" git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@545 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_http.c') diff --git a/plugins/check_http.c b/plugins/check_http.c index c0c2b413..80545b2a 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -182,9 +182,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, -- cgit v1.2.3-74-g34f1