mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-34298 course: fixed course search output validation issue
This commit is contained in:
parent
1dd6835d8c
commit
79a809ba44
@ -1920,14 +1920,14 @@ function print_course_search($value="", $return=false, $format="plain") {
|
||||
$output = '<form id="'.$id.'" action="'.$CFG->wwwroot.'/course/search.php" method="get">';
|
||||
$output .= '<fieldset class="coursesearchbox invisiblefieldset">';
|
||||
$output .= '<label for="shortsearchbox">'.$strsearchcourses.': </label>';
|
||||
$output .= '<input type="text" id="shortsearchbox" size="12" name="search" alt="'.s($strsearchcourses).'" value="'.s($value).'" />';
|
||||
$output .= '<input type="text" id="shortsearchbox" size="12" name="search" value="'.s($value).'" />';
|
||||
$output .= '<input type="submit" value="'.get_string('go').'" />';
|
||||
$output .= '</fieldset></form>';
|
||||
} else if ($format == 'navbar') {
|
||||
$output = '<form id="coursesearchnavbar" action="'.$CFG->wwwroot.'/course/search.php" method="get">';
|
||||
$output .= '<fieldset class="coursesearchbox invisiblefieldset">';
|
||||
$output .= '<label for="navsearchbox">'.$strsearchcourses.': </label>';
|
||||
$output .= '<input type="text" id="navsearchbox" size="20" name="search" alt="'.s($strsearchcourses).'" value="'.s($value).'" />';
|
||||
$output .= '<input type="text" id="navsearchbox" size="20" name="search" value="'.s($value).'" />';
|
||||
$output .= '<input type="submit" value="'.get_string('go').'" />';
|
||||
$output .= '</fieldset></form>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user