mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX Make sure all URL filters allow multibyte
This commit is contained in:
parent
a4efb3409c
commit
60329bcd69
@ -57,6 +57,8 @@ class BlogMemberExtension extends DataExtension
|
||||
public function generateURLSegment()
|
||||
{
|
||||
$filter = URLSegmentFilter::create();
|
||||
$filter->setAllowMultibyte(true);
|
||||
|
||||
$name = $this->owner->FirstName . ' ' . $this->owner->Surname;
|
||||
$urlSegment = $filter->filter($name);
|
||||
|
||||
|
@ -864,6 +864,7 @@ class Blog_Controller extends Page_Controller
|
||||
$tag = $this->request->param('Tag');
|
||||
if ($tag) {
|
||||
$filter = URLSegmentFilter::create();
|
||||
$filter->setAllowMultibyte(true);
|
||||
|
||||
return $dataRecord->Tags()
|
||||
->filter('URLSegment', array($tag, $filter->filter($tag)))
|
||||
@ -910,6 +911,7 @@ class Blog_Controller extends Page_Controller
|
||||
$category = $this->request->param('Category');
|
||||
if ($category) {
|
||||
$filter = URLSegmentFilter::create();
|
||||
$filter->setAllowMultibyte(true);
|
||||
|
||||
return $dataRecord->Categories()
|
||||
->filter('URLSegment', array($category, $filter->filter($category)))
|
||||
|
Loading…
Reference in New Issue
Block a user