mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update filefunc.inc.php
This commit is contained in:
parent
8d1e211500
commit
401d32cad5
|
|
@ -82,7 +82,8 @@ $result = @include_once $conffile; // Keep @ because with some error reporting t
|
|||
$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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user