You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
update Smarty to v3.1.33 - "This release does cover security issue CVE-2018-16831, other bug fixes (see changelog.txt) and adds a new feature of the {capture} tag (see NEW_FEATURES.txt)."
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
* @package Smarty
|
||||
* @subpackage PluginsShared
|
||||
*/
|
||||
|
||||
/**
|
||||
* convert characters to their decimal unicode equivalents
|
||||
*
|
||||
@@ -24,7 +23,6 @@ function smarty_mb_to_unicode($string, $encoding = null)
|
||||
} else {
|
||||
$expanded = mb_convert_encoding($string, 'UTF-32BE');
|
||||
}
|
||||
|
||||
return unpack('N*', $expanded);
|
||||
}
|
||||
|
||||
@@ -45,10 +43,9 @@ function smarty_mb_from_unicode($unicode, $encoding = null)
|
||||
if (!$encoding) {
|
||||
$encoding = mb_internal_encoding();
|
||||
}
|
||||
foreach ((array) $unicode as $utf32be) {
|
||||
foreach ((array)$unicode as $utf32be) {
|
||||
$character = pack('N*', $utf32be);
|
||||
$t .= mb_convert_encoding($character, $encoding, 'UTF-32BE');
|
||||
}
|
||||
|
||||
return $t;
|
||||
}
|
||||
|
Reference in New Issue
Block a user