diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-11 10:39:31 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-11 10:39:31 +0000 |
commit | 3f72682fd748f921503f0bf40e7f55506a39a400 (patch) | |
tree | e7c2c8202cea5bcdc7cdc077a998d70fc66c230d | |
parent | c33febc275e9278a6eccac63301234acd351c6f5 (diff) | |
download | monitoring-plugins-3f72682fd748f921503f0bf40e7f55506a39a400.tar.gz |
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
-rw-r--r-- | plugins/check_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; | |||
182 | 182 | ||
183 | #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " | 183 | #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " |
184 | #define URI_HTTP "%[HTPShtps]://" | 184 | #define URI_HTTP "%[HTPShtps]://" |
185 | #define URI_HOST "%[a-zA-Z0-9.-]" | 185 | #define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" |
186 | #define URI_PORT ":%[0-9]" | 186 | #define URI_PORT ":%[-0123456789]" |
187 | #define URI_PATH "%[/a-zA-Z0-9._-=@,]" | 187 | #define URI_PATH "%[-_=@,?&#;/.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" |
188 | 188 | ||
189 | enum { | 189 | enum { |
190 | MAX_IPV4_HOSTLENGTH = 255, | 190 | MAX_IPV4_HOSTLENGTH = 255, |