diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-04 21:31:34 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-04 21:31:34 +0000 |
commit | 29be52fbfb7ab44f0ec6c89d1a607f9fdbc927b9 (patch) | |
tree | e573c8dc6d15657d629da565ae75e3fa36fdaab2 | |
parent | 5f67f05d92bb8bc34ef3def355a6ec628612d54f (diff) | |
download | php-git-29be52fbfb7ab44f0ec6c89d1a607f9fdbc927b9.tar.gz |
A slightly better content-type check.
-rw-r--r-- | sapi/apache2filter/sapi_apache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 826ad74716..0963558ff1 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -575,7 +575,7 @@ static void php_insert_filter(request_rec *r) int content_type_len = strlen("application/x-httpd-php"); if (r->content_type && !strncmp(r->content_type, "application/x-httpd-php", content_type_len-1)) { - if (r->content_type[content_type_len] == '\0' || !strncmp(r->content_type+content_type_len, "-source", strlen("-source"))) { + if (r->content_type[content_type_len] == '\0' || !strncmp(r->content_type+content_type_len, "-source", sizeof("-source"))) { php_add_filter(r, r->output_filters); php_add_filter(r, r->input_filters); } |