summaryrefslogtreecommitdiff
path: root/modules/tag/models
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2011-04-22 12:38:10 -0400
committerChad Kieffer <ckieffer@gmail.com>2011-04-22 12:38:10 -0400
commitfbf02970e1c454ad99b2fc01a897a8de834d7e7c (patch)
treedf6f587fe1ed2635d8becd655d9a9518a5d0bc3a /modules/tag/models
parent4a9b45c9c3bbd574103e01debcd84cab1a18352a (diff)
parent55da59c942c0f7171b515f0718fea8506ed4b116 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/tag/models')
-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";
}