Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'w29_MDL-28360_m19_flatfile' of git://github.com/skodak/…

…moodle into MOODLE_19_STABLE
  • Loading branch information...
commit fb50bf6c32274472a2fd5b7c98fc9fbd3ba2709f 2 parents 9dce25d + bd4f3fa
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/flatfile/enrol.php
View
4 enrol/flatfile/enrol.php
@@ -157,13 +157,13 @@ function cron() {
continue;
}
- if (! $user = get_record("user", "idnumber", $fields[2]) ) {
+ if (! $user = get_record("user", "idnumber", addslashes($fields[2])) ) {
$this->log .= "Unknown user idnumber in field 3 - ignoring line\n";
continue;
}
- if (! $course = get_record("course", "idnumber", $fields[3]) ) {
+ if (! $course = get_record("course", "idnumber", addslashes($fields[3])) ) {
$this->log .= "Unknown course idnumber in field 4 - ignoring line\n";
continue;
}
Please sign in to comment.
Something went wrong with that request. Please try again.