mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Fixed a SQL injection from $scoid
This commit is contained in:
parent
d1266f9db5
commit
06abe84fde
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
||||||
if ($sco = get_record("scorm_scoes","id",$scoid)) {
|
if ($sco = get_record("scorm_scoes","id",$scoid)) {
|
||||||
if ($sco->launch == '') {
|
if ($sco->launch == '') {
|
||||||
// Search for the next launchable sco
|
// Search for the next launchable sco
|
||||||
if ($scoes = get_records_select("scorm_scoes","scorm=".$scorm->id." AND launch<>'' AND id>".$scoid,"id ASC")) {
|
if ($scoes = get_records_select("scorm_scoes","scorm=".$scorm->id." AND launch<>'' AND id>".$sco->id,"id ASC")) {
|
||||||
$sco = current($scoes);
|
$sco = current($scoes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue