mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-07-01 08:59:21 +02:00
SelectedTag will now 'urldecode' tag.
Inside of 'code/BlogEntry.php' the method TagsCollection() 'urlencode's the tag before making it into a link. Tags with spaces, and other special characters, will not return any BlogEntries from BlogTree::Entries().
This commit is contained in:
parent
2936024e8d
commit
7e0c58a637
|
@ -322,7 +322,12 @@ class BlogTree_Controller extends Page_Controller {
|
||||||
* @return String
|
* @return String
|
||||||
*/
|
*/
|
||||||
function SelectedTag() {
|
function SelectedTag() {
|
||||||
return ($this->request->latestParam('Action') == 'tag') ? Convert::raw2xml($this->request->latestParam('ID')) : '';
|
if ($this->request->latestParam('Action') == 'tag') {
|
||||||
|
$tag = $this->request->latestParam('ID');
|
||||||
|
$tag = urldecode($tag);
|
||||||
|
return Convert::raw2xml($tag);
|
||||||
|
}
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user