Skip to content
Permalink
Browse files

Fixed issue: can't extract large zip file

  • Loading branch information...
LouisGac committed Oct 30, 2018
1 parent bcfd620 commit 1ceba170dbe25f7272d3873f3ae940c3a91a56ce
Showing with 3 additions and 1 deletion.
  1. +2 −0 application/config/config-defaults.php
  2. +1 −1 application/helpers/common_helper.php
@@ -90,6 +90,8 @@
$config['memory_limit'] = '256'; // This sets how much memory LimeSurvey can access in megabytes. 256 MB is the minimum recommended - if you are using PDF functions up to 512 MB may be needed
$config['maximum_unzipped_size'] = '500000000'; // Max size after zip unarchiving in bytes.
$config['showpopups'] = 2; // Show popup messages if mandatory or conditional questions have not been answered correctly.
// 2 = defined by Theme option (default)
// 1 = Show popup message
@@ -5038,7 +5038,7 @@ function crypto_rand_secure($min, $max) {
*/
function isZipBomb($zip_filename)
{
return ( get_zip_originalsize($zip_filename) > getMaximumFileUploadSize() );
return ( get_zip_originalsize($zip_filename) > Yii::app()->getConfig('maximum_unzipped_size') );
}
/**

0 comments on commit 1ceba17

Please sign in to comment.
You can’t perform that action at this time.