summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-04-22 08:11:56 -0700
committerBharat Mediratta <bharat@menalto.com>2011-04-22 08:11:56 -0700
commit72149b8c68a488e4f935603e6bbf91d2536c2dee (patch)
tree46292184d46b9f6c5d33e533533af5cea0b946c4 /modules
parent99fd65ff02d17cbb3ec936b4bdbf2a8c6b0b73e3 (diff)
Urlencode the tag name so that our html is compliant. Fixes #1672.
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/models/tag.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php
index 479a7da0..bd665667 100644
--- a/modules/tag/models/tag.php
+++ b/modules/tag/models/tag.php
@@ -132,7 +132,7 @@ class Tag_Model_Core extends ORM {
* @param string $query the query string (eg "page=3")
*/
public function url($query=null) {
- $url = url::site("tag/{$this->id}/{$this->name}");
+ $url = url::site("tag/{$this->id}/" . urlencode($this->name));
if ($query) {
$url .= "?$query";
}