Skip to content

Commit

Permalink
Don't url encode the components of the relative_path_cache as we they…
Browse files Browse the repository at this point in the history
… refer to file paths and they are converted back in the file proxy. Fixes ticket #812
  • Loading branch information
Tim Almdal committed Oct 28, 2009
1 parent 3b4a64c commit cb0243b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gallery/models/item.php
Expand Up @@ -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, "/");
Expand Down

0 comments on commit cb0243b

Please sign in to comment.