mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
fix multi-byte string processing
This commit is contained in:
parent
9bea4fe4a1
commit
7ac9260ba7
@ -158,8 +158,8 @@ class App
|
||||
if ($value)
|
||||
{
|
||||
$title = urldecode(
|
||||
strlen($value) > $this->config->header->title->length->max ? substr($value, 0, $this->config->header->title->length->max) . '...'
|
||||
: $value
|
||||
mb_strlen($value) > $this->config->header->title->length->max ? mb_substr($value, 0, $this->config->header->title->length->max) . '...'
|
||||
: $value
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -640,8 +640,8 @@ class Page
|
||||
if ($value)
|
||||
{
|
||||
$title = urldecode(
|
||||
strlen($value) > $this->config->title->length->max ? substr($value, 0, $this->config->title->length->max) . '...'
|
||||
: $value
|
||||
mb_strlen($value) > $this->config->title->length->max ? mb_substr($value, 0, $this->config->title->length->max) . '...'
|
||||
: $value
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user