mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix multi-byte string processing
This commit is contained in:
parent
9bea4fe4a1
commit
7ac9260ba7
2 changed files with 4 additions and 4 deletions
|
|
@ -158,7 +158,7 @@ class App
|
||||||
if ($value)
|
if ($value)
|
||||||
{
|
{
|
||||||
$title = urldecode(
|
$title = urldecode(
|
||||||
strlen($value) > $this->config->header->title->length->max ? substr($value, 0, $this->config->header->title->length->max) . '...'
|
mb_strlen($value) > $this->config->header->title->length->max ? mb_substr($value, 0, $this->config->header->title->length->max) . '...'
|
||||||
: $value
|
: $value
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -640,7 +640,7 @@ class Page
|
||||||
if ($value)
|
if ($value)
|
||||||
{
|
{
|
||||||
$title = urldecode(
|
$title = urldecode(
|
||||||
strlen($value) > $this->config->title->length->max ? substr($value, 0, $this->config->title->length->max) . '...'
|
mb_strlen($value) > $this->config->title->length->max ? mb_substr($value, 0, $this->config->title->length->max) . '...'
|
||||||
: $value
|
: $value
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue