X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_info_api.c;h=7cf9cc6eb0a6844b14d3c7b0dddd439db6db8286;hp=0f22902bb2e020fcc8744280dc16c7f9cee1a55d;hb=c40902a33546532405c17c6216c347874f8cb8ff;hpb=8204e46941884d867e78bb176f6306b309db72ba diff --git a/http_info_api.c b/http_info_api.c index 0f22902..7cf9cc6 100644 --- a/http_info_api.c +++ b/http_info_api.c @@ -97,8 +97,8 @@ PHP_HTTP_API STATUS _http_info_parse_ex(const char *pre_header, http_info *info, */ if ( (!(http = php_memnstr((char *) pre_header, "HTTP/1.", lenof("HTTP/1."), (char *)end))) || (!(http < end)) || - (!isdigit(http[lenof("HTTP/1.")])) || - (http[lenof("HTTP/1.1")] && (!isspace(http[lenof("HTTP/1.1")])))) { + (!HTTP_IS_CTYPE(digit, http[lenof("HTTP/1.")])) || + (http[lenof("HTTP/1.1")] && (!HTTP_IS_CTYPE(space, http[lenof("HTTP/1.1")])))) { if (!silent) { http_error(HE_WARNING, HTTP_E_MALFORMED_HEADERS, "Invalid or missing HTTP/1.x protocol identification"); }