summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-08 02:27:45 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-08 02:27:45 +0000
commit41ed142f5dfd0687734f14c79273fd0c84f1e330 (patch)
tree8067153586d2dc52390e686d257df3c540ab0b77 /core
parent1fc2307faba7f280e9251de54504122a1dcb187e (diff)
A better fix for the problem with special characters (this simple 2
line change replaces r19995, r19998-r20001 (thanks Bharat)
Diffstat (limited to 'core')
-rw-r--r--core/helpers/MY_url.php4
1 files changed, 2 insertions, 2 deletions
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;
}
}