Browse files

Merged from MOODLE_14_STABLE: Adding slashes to backup_log.info as co…

…urses with an apostrophe in their fullname cause sql errors
  • Loading branch information...
1 parent 577f519 commit 075ff4698aaf26954e67f2b9b558714490110cce mjollnir_ committed Jan 10, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/backup_scheduled.php
View
2 backup/backup_scheduled.php
@@ -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);
}

0 comments on commit 075ff46

Please sign in to comment.