Merge branch '2.4' into 2.5

This commit is contained in:
Guy Marriott 2019-08-01 11:21:57 +12:00
commit ae4c2ffd4c
No known key found for this signature in database
GPG Key ID: A80F9ACCB86D3DA7
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -863,6 +863,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)))
@ -909,6 +910,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)))