Skip to content

Commit

Permalink
MDL-76092 core_backup: Fix PHP8.0 vulnerability convert_params_to_values
Browse files Browse the repository at this point in the history
  • Loading branch information
Paola Maneggia authored and andrewnicols committed Aug 23, 2023
1 parent cccc009 commit d227945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/util/dbops/backup_structure_dbops.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function convert_params_to_values($params, $processor) {
throw new base_element_struct_exception('valueofparamelementnotset', $param->get_name());
}

} else if ($param < 0) { // Possibly one processor variable, let's process it
} else if (is_numeric($param) && $param < 0) { // Possibly one processor variable, let's process it
// See @backup class for all the VAR_XXX variables available.
// Note1: backup::VAR_PARENTID is handled by nested elements themselves
// Note2: trying to use one non-existing var will throw exception
Expand Down

0 comments on commit d227945

Please sign in to comment.