From cdc2c57b21ff4541e2d588c805ff383ff4186eae Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sat, 21 Jun 2003 05:31:23 +0000 Subject: fix character class for URI_PATH and URI_PORT git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@550 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 80545b2a..dddddf97 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -180,12 +180,12 @@ struct timeval tv; #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]" - +#define URI_PORT ":%[0123456789]" +#define URI_PATH "%[-_.!~*'();/?:@&=+$,%#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" enum { MAX_IPV4_HOSTLENGTH = 255, HTTP_PORT = 80, -- cgit v1.2.3-74-g34f1