mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
Fix double encoding time strings (CakeTime)
Fix time strings being double encoded when mb_string is not installed.
This commit is contained in:
parent
2ee5c3d73d
commit
eb414bdda1
1 changed files with 1 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ class CakeTime {
|
|||
if (function_exists('mb_check_encoding')) {
|
||||
$valid = mb_check_encoding($format, $encoding);
|
||||
} else {
|
||||
$valid = !Multibyte::checkMultibyte($format);
|
||||
$valid = Multibyte::checkMultibyte($format);
|
||||
}
|
||||
if (!$valid) {
|
||||
$format = utf8_encode($format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue