KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

DB function use violates Moodle coding guidelines. #97

Closed danmarsden closed 5 years ago

danmarsden commented 5 years ago

This style of DB function use violates normal Moodle guidelines, and makes it hard to review your code. the first param is a sql injection vector and reviewers must track through your code to check how the variables are stored and if they are manipulated anywhere: eg: $DB->update_record(database_meta::$tableratingsystem, $configuration)

should be: $DB->update_record('capquiz_rating_system', $configuration)

sebastsg commented 5 years ago

This is taken care of now.