From 2bc296abb6df68eaed5c49b289ce996d3a39729e Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sat, 21 Jun 2003 05:23:03 +0000 Subject: [PATCH] add remaining URI_PATH chars per RFC 2396 remove '-' from URI_PORT git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@549 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/check_http.c b/plugins/check_http.c index 35ca748..468e4c2 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -182,11 +182,13 @@ 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, -- 2.30.2