diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-10 04:03:11 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-10 04:03:11 +0000 |
commit | 439e8e8bb87247781c741e08f9c6234a3260a6a3 (patch) | |
tree | b5610b19b6e7a3ac5195ba1075e692e195176541 /mod/search/index.php | |
parent | 49ffe33a3cd85f26089862e86019cc14777fb773 (diff) | |
download | elgg-439e8e8bb87247781c741e08f9c6234a3260a6a3.tar.gz elgg-439e8e8bb87247781c741e08f9c6234a3260a6a3.tar.bz2 |
Removed unneeded url_encode()s for links.
git-svn-id: http://code.elgg.org/elgg/trunk@3655 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/index.php')
-rw-r--r-- | mod/search/index.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/mod/search/index.php b/mod/search/index.php index 2927e6616..d62e3be72 100644 --- a/mod/search/index.php +++ b/mod/search/index.php @@ -37,14 +37,14 @@ $custom_types = trigger_plugin_hook('search_types', 'get_types', $params, array( // add submenu items for all and native types // @todo should these maintain any existing type / subtype filters or reset? -$data = http_build_query(array( - 'q' => urlencode($query), - 'entity_subtype' => urlencode($subtype), - 'entity_type' => urlencode($type), - 'owner_guid' => urlencode($owner_guid), +$data = htmlspecialchars(http_build_query(array( + 'q' => $query, + 'entity_subtype' => $subtype, + 'entity_type' => $type, + 'owner_guid' => $owner_guid, 'search_type' => 'all', 'friends' => $friends -)); +))); $url = "{$CONFIG->wwwroot}pg/search/?$data"; add_submenu_item(elgg_echo('all'), $url); @@ -54,14 +54,14 @@ foreach ($types as $type => $subtypes) { foreach ($subtypes as $subtype) { $label = "item:$type:$subtype"; - $data = http_build_query(array( - 'q' => urlencode($query), - 'entity_subtype' => urlencode($subtype), - 'entity_type' => urlencode($type), - 'owner_guid' => urlencode($owner_guid), + $data = htmlspecialchars(http_build_query(array( + 'q' => $query, + 'entity_subtype' => $subtype, + 'entity_type' => $type, + 'owner_guid' => $owner_guid, 'search_type' => 'entities', 'friends' => $friends - )); + ))); $url = "{$CONFIG->wwwroot}pg/search/?$data"; @@ -70,13 +70,13 @@ foreach ($types as $type => $subtypes) { } else { $label = "item:$type"; - $data = http_build_query(array( - 'q' => urlencode($query), - 'entity_type' => urlencode($type), - 'owner_guid' => urlencode($owner_guid), + $data = htmlspecialchars(http_build_query(array( + 'q' => $query, + 'entity_type' => $type, + 'owner_guid' => $owner_guid, 'search_type' => 'entities', 'friends' => $friends - )); + ))); $url = "{$CONFIG->wwwroot}pg/search/?$data"; |