From 41ed142f5dfd0687734f14c79273fd0c84f1e330 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 8 Feb 2009 02:27:45 +0000 Subject: A better fix for the problem with special characters (this simple 2 line change replaces r19995, r19998-r20001 (thanks Bharat) --- core/helpers/MY_url.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/MY_url.php b/core/helpers/MY_url.php index dd3682df..8969228c 100644 --- a/core/helpers/MY_url.php +++ b/core/helpers/MY_url.php @@ -33,10 +33,10 @@ class url extends url_Core { $count = count(Router::$segments); foreach (ORM::factory("item") - ->where("name", Router::$segments[$count - 1]) + ->where("name", html_entity_decode(Router::$segments[$count - 1], ENT_QUOTES)) ->where("level", $count + 1) ->find_all() as $match) { - if ($match->relative_path() == Router::$current_uri) { + if ($match->relative_path() == html_entity_decode(Router::$current_uri, ENT_QUOTES)) { $item = $match; } } -- cgit v1.2.3