aboutsummaryrefslogtreecommitdiff
path: root/mod/search/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-10 03:56:11 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-10 03:56:11 +0000
commit49ffe33a3cd85f26089862e86019cc14777fb773 (patch)
treeb055e8d6e2cca5a86b165c2571a83dbefe2f74c4 /mod/search/start.php
parent7fe92777c2e55a3536d4b6b18603d6e067918a7c (diff)
downloadelgg-49ffe33a3cd85f26089862e86019cc14777fb773.tar.gz
elgg-49ffe33a3cd85f26089862e86019cc14777fb773.tar.bz2
Underscores. grr.
git-svn-id: http://code.elgg.org/elgg/trunk@3654 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/start.php')
-rw-r--r--mod/search/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/search/start.php b/mod/search/start.php
index 895e806b2..14299b7c6 100644
--- a/mod/search/start.php
+++ b/mod/search/start.php
@@ -88,7 +88,7 @@ function search_page_handler($page) {
*/
function search_get_highlighted_relevant_substrings($haystack, $needle, $min_match_context = 15, $max_length = 500) {
global $CONFIG;
- $haystack = url_decode(strip_tags($haystack));
+ $haystack = urldecode(strip_tags($haystack));
$haystack_lc = strtolower($haystack);
//
// $haystack = "Like merge sort, quicksort can also be easily parallelized due to its "
@@ -100,7 +100,7 @@ function search_get_highlighted_relevant_substrings($haystack, $needle, $min_mat
// for now don't worry about "s or boolean operators
$needle = str_replace(array('"', '-', '+', '~'), '', stripslashes(strip_tags($needle)));
- $needle = url_decode($needle);
+ $needle = urldecode($needle);
$words = explode(' ', $needle);
$min_chars = $CONFIG->search_info['min_chars'];