From 7e0c58a63752367f4c87600aac86b8a4e1e40138 Mon Sep 17 00:00:00 2001 From: jaredkipe Date: Sat, 16 Mar 2013 18:39:16 -0700 Subject: [PATCH] SelectedTag will now 'urldecode' tag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(). --- code/BlogTree.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/BlogTree.php b/code/BlogTree.php index 0668b48..142625c 100644 --- a/code/BlogTree.php +++ b/code/BlogTree.php @@ -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 ''; } /**