aboutsummaryrefslogtreecommitdiff
path: root/mod/search/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search/start.php')
-rw-r--r--mod/search/start.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/search/start.php b/mod/search/start.php
index 14299b7c6..314aa4710 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 = urldecode(strip_tags($haystack));
+ $haystack = strip_tags($haystack);
$haystack_lc = strtolower($haystack);
//
// $haystack = "Like merge sort, quicksort can also be easily parallelized due to its "
@@ -100,7 +100,6 @@ 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 = urldecode($needle);
$words = explode(' ', $needle);
$min_chars = $CONFIG->search_info['min_chars'];