summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-06-21 05:31:23 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-06-21 05:31:23 (GMT)
commitcdc2c57b21ff4541e2d588c805ff383ff4186eae (patch)
tree32df9e1e7eae06b4ce28d4ed5863655c55ddbb3b /plugins
parent0ae22f58f9e727f4137cb85bff2b7431f1c3af46 (diff)
downloadmonitoring-plugins-cdc2c57b21ff4541e2d588c805ff383ff4186eae.tar.gz
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 80545b2..dddddf9 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -180,12 +180,12 @@ struct timeval tv;
180 180
181#define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT) 181#define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT)
182 182
183/* per RFC 2396 */
183#define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " 184#define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: "
184#define URI_HTTP "%[HTPShtps]://" 185#define URI_HTTP "%[HTPShtps]://"
185#define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" 186#define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
186#define URI_PORT ":%[-0123456789]" 187#define URI_PORT ":%[0123456789]"
187#define URI_PATH "%[-_=@,?&#;/.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" 188#define URI_PATH "%[-_.!~*'();/?:@&=+$,%#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
188
189enum { 189enum {
190 MAX_IPV4_HOSTLENGTH = 255, 190 MAX_IPV4_HOSTLENGTH = 255,
191 HTTP_PORT = 80, 191 HTTP_PORT = 80,