mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Merge pull request #5610 from dmromanov/patch-2
Fix double encoding time strings (CakeTime)
This commit is contained in:
commit
642e11e728
1 changed files with 1 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ class CakeTime {
|
||||||
if (function_exists('mb_check_encoding')) {
|
if (function_exists('mb_check_encoding')) {
|
||||||
$valid = mb_check_encoding($format, $encoding);
|
$valid = mb_check_encoding($format, $encoding);
|
||||||
} else {
|
} else {
|
||||||
$valid = !Multibyte::checkMultibyte($format);
|
$valid = Multibyte::checkMultibyte($format);
|
||||||
}
|
}
|
||||||
if (!$valid) {
|
if (!$valid) {
|
||||||
$format = utf8_encode($format);
|
$format = utf8_encode($format);
|
||||||
|
|
Loading…
Add table
Reference in a new issue