Merge pull request #75 from jaredkipe/master

Tags with spaces will not properly locate BlogEntries
This commit is contained in:
carlos barberis 2013-03-17 13:05:14 -07:00
commit d8383f00cb
1 changed files with 6 additions and 1 deletions

View File

@ -322,7 +322,12 @@ class BlogTree_Controller extends Page_Controller {
* @return String
*/
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 '';
}
/**