Skip to content

Commit

Permalink
Merged from MOODLE_14_STABLE: Adding slashes to backup_log.info as co…
Browse files Browse the repository at this point in the history
…urses with an apostrophe in their fullname cause sql errors
  • Loading branch information
mjollnir_ committed Jan 10, 2005
1 parent 577f519 commit 075ff46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/backup_scheduled.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function schedule_backup_log($starttime,$courseid,$message) {
$log->courseid = $courseid;
$log->time = time();
$log->laststarttime = $starttime;
$log->info = $message;
$log->info = addslashes($message);

insert_record ("backup_log",$log);
}
Expand Down

0 comments on commit 075ff46

Please sign in to comment.