mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merged from MOODLE_15_STABLE: Escape strings for database. SC # 145
This commit is contained in:
parent
300dfca610
commit
d23d0398fe
@ -315,7 +315,7 @@
|
||||
$status = execute_sql("INSERT INTO {$CFG->prefix}backup_files
|
||||
(backup_code, file_type, path)
|
||||
VALUES
|
||||
('$backup_unique_code','course','$dir')",false);
|
||||
('$backup_unique_code','course','".addslashes($dir)."')",false);
|
||||
}
|
||||
//Do some output
|
||||
backup_flush(30);
|
||||
|
Loading…
x
Reference in New Issue
Block a user