mod-forum-search MDL-25239 Fixed double encoding of the search param during pagination
authorSam Hemelryk <sam@moodle.com>
Tue, 16 Nov 2010 09:00:47 +0000 (09:00 +0000)
committerSam Hemelryk <sam@moodle.com>
Tue, 16 Nov 2010 09:00:47 +0000 (09:00 +0000)
mod/forum/search.php

index d843779..96af836 100644 (file)
@@ -180,7 +180,7 @@ echo '</div>';
 
 echo $OUTPUT->heading("$strsearchresults: $totalcount");
 
-$url = new moodle_url('search.php', array('search' => urlencode($search), 'id' => $course->id, 'perpage' => $perpage));
+$url = new moodle_url('search.php', array('search' => $search, 'id' => $course->id, 'perpage' => $perpage));
 echo $OUTPUT->paging_bar($totalcount, $page, $perpage, $url);
 
 //added to implement highlighting of search terms found only in HTML markup