]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12613 - this should fix the problem with the search block
authorscyrma <scyrma>
Tue, 18 Dec 2007 07:54:09 +0000 (07:54 +0000)
committerscyrma <scyrma>
Tue, 18 Dec 2007 07:54:09 +0000 (07:54 +0000)
mod/forum/lib.php

index bff5f6694e0acc6aa08a6c17a57188f5e7a8596e..7beb067b570ef748b3a94f63cb69fe2e6155fa4b 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="'.$search.'" alt="search" />';
+    $output .= '<input name="search" type="text" size="18" value="'.s($search).'" alt="search" />';
     $output .= '<input value="'.get_string('searchforums', 'forum').'" type="submit" />';
     $output .= '<input name="id" type="hidden" value="'.$course->id.'" />';
     $output .= '</fieldset>';