cvs: php4 /sapi/apache2filter sapi_apache2.c

From: Date: Fri, 04 Oct 2002 21:31:34 +0000
Subject: cvs: php4 /sapi/apache2filter sapi_apache2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14555@lists.php.net to get a copy of this message
iliaa Fri Oct 4 17:31:34 2002 EDT Modified files: /php4/sapi/apache2filter sapi_apache2.c Log: A slightly better content-type check. Index: php4/sapi/apache2filter/sapi_apache2.c diff -u php4/sapi/apache2filter/sapi_apache2.c:1.86 php4/sapi/apache2filter/sapi_apache2.c:1.87 --- php4/sapi/apache2filter/sapi_apache2.c:1.86 Fri Oct 4 17:15:59 2002 +++ php4/sapi/apache2filter/sapi_apache2.c Fri Oct 4 17:31:34 2002 @@ -575,7 +575,7 @@ 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); }

« previous php.cvs (#14555) next »