summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-27 19:23:30 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-27 19:23:30 -0700
commitcb0243bbe85599f1f5b8d710bd4825bcde111c84 (patch)
treeeea473511e4c13f9dd73e8b4cf0111dfebc71ba4
parent3b4a64c698a06a696708afb45e6c4503c2b69b13 (diff)
Don't url encode the components of the relative_path_cache as we they refer to file paths and they are converted back in the file proxy. Fixes ticket #812
-rw-r--r--modules/gallery/models/item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index ca1e10cb..63ab3598 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -293,7 +293,8 @@ class Item_Model extends ORM_MPTT {
->where("id <>", 1)
->orderby("left_ptr", "ASC")
->get() as $row) {
- $names[] = rawurlencode($row->name);
+ // Don't encode the names segment
+ $names[] = $row->name;
$slugs[] = rawurlencode($row->slug);
}
$this->relative_path_cache = implode($names, "/");