Procházet zdrojové kódy

php.ini value zlib.output_compression can be greater than 1 if a buffer size is set in php.ini

sicommnend před 12 roky
rodič
revize
f9cdb164c5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -89,7 +89,7 @@ if (isset($_GET['scheduled']))
 if (!empty($modSettings['enableCompressedOutput']) && !headers_sent())
 {
 	// If zlib is being used, turn off output compression.
-	if (ini_get('zlib.output_compression') == '1' || ini_get('output_handler') == 'ob_gzhandler')
+	if (ini_get('zlib.output_compression') >=  1 || ini_get('output_handler') == 'ob_gzhandler')
 		$modSettings['enableCompressedOutput'] = '0';
 	else
 	{