Skip to content

Commit 8ccf065

Browse files
laruencejohannes
authored andcommitted
Fixed bug #61650 (ini parser crashes when using ${xxxx} ini variables (without apache2))
1 parent a4e6394 commit 8ccf065

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/SAPI.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,9 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
945945
} else {
946946
return NULL;
947947
}
948-
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
948+
if (sapi_module.input_filter) {
949+
sapi_module.input_filter(PARSE_ENV, name, &value, strlen(value), NULL TSRMLS_CC);
950+
}
949951
return value;
950952
}
951953
return NULL;

0 commit comments

Comments
 (0)