We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f67f05 commit 29be52fCopy full SHA for 29be52f
sapi/apache2filter/sapi_apache2.c
@@ -575,7 +575,7 @@ static void php_insert_filter(request_rec *r)
575
int content_type_len = strlen("application/x-httpd-php");
576
577
if (r->content_type && !strncmp(r->content_type, "application/x-httpd-php", content_type_len-1)) {
578
- 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"))) {
579
php_add_filter(r, r->output_filters);
580
php_add_filter(r, r->input_filters);
581
}
0 commit comments