alecpl
2009-09-22 6d479a622bfb779e07e7ac7bd12154ec951982e5
- remove set_magic_quotes_runtime() call, use set_time_limit() with @ (#1486149)


3 files modified
18 ■■■■■ changed files
.htaccess 7 ●●●●● patch | view | raw | blame | history
program/include/iniset.php 7 ●●●● patch | view | raw | blame | history
program/steps/mail/get.inc 4 ●●● patch | view | raw | blame | history
.htaccess
@@ -10,9 +10,10 @@
php_value    post_max_size        6M
php_value    memory_limit        64M
php_value    zlib.output_compression        Off
php_value    magic_quotes_gpc        0
php_value    zend.ze1_compatibility_mode    0
php_flag    zlib.output_compression        Off
php_flag    magic_quotes_gpc        Off
php_flag    magic_quotes_runtime        Off
php_flag    zend.ze1_compatibility_mode    Off
php_flag     suhosin.session.encrypt     Off
php_value    session.auto_start    0
program/include/iniset.php
@@ -59,15 +59,10 @@
ini_set('session.name', 'roundcube_sessid');
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
if (function_exists('set_magic_quotes_runtime')) {
  set_magic_quotes_runtime(0);
}
// increase maximum execution time for php scripts
// (does not work in safe mode)
if (!ini_get('safe_mode')) {
  set_time_limit(120);
}
@set_time_limit(120);
// set internal encoding for mbstring extension
if(extension_loaded('mbstring'))
program/steps/mail/get.inc
@@ -93,9 +93,7 @@
    }
    else {
      // don't kill the connection if download takes more than 30 sec.
      if (!ini_get('safe_mode')) {
          set_time_limit(0);
      }
      @set_time_limit(0);
      
      $filename = $part->filename ? $part->filename : ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . '.'.$ctype_secondary;