summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-11 11:04:35 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-11 11:04:35 -0700
commit7ec490b6009965920fea35e971b29f11df6e6bff (patch)
tree83fabdcc912b6f546c76bfe87c790898d7c1c73e /modules/gallery/models
parent3ac3d1e520f95cc859d990000561dbb727411e0c (diff)
rawurlencode() path components in relative_path_cache and
relative_url_cache so that they're safe for browser use.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r--modules/gallery/models/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index da1f6959..a87997c6 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -284,8 +284,8 @@ class Item_Model extends ORM_MPTT {
->where("id <>", 1)
->orderby("left_ptr", "ASC")
->get() as $row) {
- $names[] = urlencode($row->name);
- $slugs[] = urlencode($row->slug);
+ $names[] = rawurlencode($row->name);
+ $slugs[] = rawurlencode($row->slug);
}
$this->relative_path_cache = implode($names, "/");
$this->relative_url_cache = implode($slugs, "/");