Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-10341 fixed user search cleaning

  • Loading branch information...
commit 84d7815107d67ddd5f0ac7c6b8d27a79a3ee5792 1 parent cd1aa3b
skodak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 user/index.php
View
4 user/index.php
@@ -137,7 +137,7 @@
}
// Should use this variable so that we don't break stuff every time a variable is added or changed.
- $baseurl = $CFG->wwwroot.'/user/index.php?contextid='.$context->id.'&roleid='.$roleid.'&id='.$course->id.'&group='.$currentgroup.'&perpage='.$perpage.'&accesssince='.$accesssince.'&search='.$search;
+ $baseurl = $CFG->wwwroot.'/user/index.php?contextid='.$context->id.'&roleid='.$roleid.'&id='.$course->id.'&group='.$currentgroup.'&perpage='.$perpage.'&accesssince='.$accesssince.'&search='.s($search);
/// Print headers
@@ -615,7 +615,7 @@ function checkchecked(form) {
if ($bulkoperations && $totalcount > ($perpage*3)) {
echo '<form action="index.php"><div><input type="hidden" name="id" value="'.$course->id.'" />'.get_string('search').':&nbsp;'."\n";
- echo '<input type="text" name="search" value="'.$search.'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
+ echo '<input type="text" name="search" value="'.s($search).'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
}
$perpageurl = preg_replace('/&amp;perpage=\d*/','', $baseurl);
Please sign in to comment.
Something went wrong with that request. Please try again.