diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-24 21:34:07 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-24 21:34:07 -0700 |
commit | 7347d1e50db102142f1c82bfeb70734475f58195 (patch) | |
tree | 591054bb109b52edd646dd9a0842f322c629bad4 | |
parent | 4384b67be1aedfbc71e3cb7e399df88fcb87ff9c (diff) |
Use ENT_QUOTEs when decoding the $current_uri otherwise apostrophes
are treated as ' which doesn't match in our relative_path_cache.
-rw-r--r-- | modules/gallery/helpers/MY_url.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/MY_url.php b/modules/gallery/helpers/MY_url.php index 7bee70ca..c4967c52 100644 --- a/modules/gallery/helpers/MY_url.php +++ b/modules/gallery/helpers/MY_url.php @@ -58,7 +58,7 @@ class url extends url_Core { * Return the item that the uri is referencing */ static function get_item_from_uri($uri) { - $current_uri = html_entity_decode($uri); + $current_uri = html_entity_decode($uri, ENT_QUOTES); $item = ORM::factory("item")->where("relative_path_cache", $current_uri)->find(); if (!$item->loaded) { // It's possible that the relative path cache for the item we're looking for is out of date, |