forked from Wavyzz/dolibarr
Merge branch 'develop' into test/security_dol_eval_ob_cleanup_on_exception
This commit is contained in:
@@ -4369,7 +4369,7 @@ function dol_substr($string, $start, $length = null, $stringencoding = '', $trun
|
||||
global $langs;
|
||||
|
||||
if (empty($stringencoding)) {
|
||||
$stringencoding = $langs->charset_output;
|
||||
$stringencoding = (empty($langs) ? 'UTF-8' : $langs->charset_output);
|
||||
}
|
||||
|
||||
$ret = '';
|
||||
|
||||
Reference in New Issue
Block a user