Permalink
Browse files

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
  • Loading branch information...
1 parent 3b4a64c commit cb0243bbe85599f1f5b8d710bd4825bcde111c84 @talmdal talmdal committed Oct 28, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/gallery/models/item.php
@@ -293,7 +293,8 @@ private function _build_relative_caches() {
->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, "/");

0 comments on commit cb0243b

Please sign in to comment.