Skip to content

Commit

Permalink
Merge pull request #29011 from le-reparateur/patch-3
Browse files Browse the repository at this point in the history
Update filefunc.inc.php
  • Loading branch information
eldy authored Mar 23, 2024
2 parents 7940b13 + 4e483e4 commit a7d982a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/filefunc.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function dol_session_rotate($sessionname = '')
$listofwrappers = stream_get_wrappers();
// We need '.phar' for geoip2. TODO Replace phar in geoip with exploded files so we can disable phar by default.
// phar stream does not auto unserialize content (possible code execution) since PHP 8.1
$arrayofstreamtodisable = array('compress.zlib', 'compress.bzip2', 'ftp', 'ftps', 'glob', 'data', 'expect', 'ogg', 'rar', 'zip', 'zlib');
// zip stream is necessary by excel import module
$arrayofstreamtodisable = array('compress.zlib', 'compress.bzip2', 'ftp', 'ftps', 'glob', 'data', 'expect', 'ogg', 'rar', 'zlib');
if (!empty($dolibarr_main_stream_to_disable) && is_array($dolibarr_main_stream_to_disable)) {
$arrayofstreamtodisable = $dolibarr_main_stream_to_disable;
}
Expand Down

0 comments on commit a7d982a

Please sign in to comment.