mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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')) {
|
||||
$valid = mb_check_encoding($format, $encoding);
|
||||
} else {
|
||||
$valid = !Multibyte::checkMultibyte($format);
|
||||
$valid = Multibyte::checkMultibyte($format);
|
||||
}
|
||||
if (!$valid) {
|
||||
$format = utf8_encode($format);
|
||||
|
|
Loading…
Add table
Reference in a new issue