]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12613 - this should fix (part of) the problem with the search block (take 2)
authorscyrma <scyrma>
Tue, 18 Dec 2007 08:17:58 +0000 (08:17 +0000)
committerscyrma <scyrma>
Tue, 18 Dec 2007 08:17:58 +0000 (08:17 +0000)
mod/forum/lib.php

index 7beb067b570ef748b3a94f63cb69fe2e6155fa4b..44ecbf6d5481725c363344c2f9c180fcaa69e617 100644 (file)
@@ -2817,7 +2817,7 @@ function forum_search_form($course, $search='') {
     $output .= '<form action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
     $output .= '<fieldset class="invisiblefieldset">';
     $output .= helpbutton('search', get_string('search'), 'moodle', true, false, '', true);
-    $output .= '<input name="search" type="text" size="18" value="'.s($search).'" alt="search" />';
+    $output .= '<input name="search" type="text" size="18" value="'.s($search, true).'" alt="search" />';
     $output .= '<input value="'.get_string('searchforums', 'forum').'" type="submit" />';
     $output .= '<input name="id" type="hidden" value="'.$course->id.'" />';
     $output .= '</fieldset>';