From cb0243bbe85599f1f5b8d710bd4825bcde111c84 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 27 Oct 2009 19:23:30 -0700 Subject: 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 --- modules/gallery/models/item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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, "/"); -- cgit v1.2.3