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);
                }       



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to