mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
manual grading: MDL-20581 Fix potential XSS problem.
Thanks to Penny for spotting this. Merged from MOODLE_19_STABLE.
This commit is contained in:
parent
2d0d78befd
commit
5ffd1421a5
3 changed files with 7 additions and 4 deletions
|
@ -65,7 +65,7 @@ $capabilities = array(
|
|||
|
||||
// Manually grade and comment on student attempts at a question.
|
||||
'mod/quiz:grade' => array(
|
||||
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
|
@ -77,7 +77,7 @@ $capabilities = array(
|
|||
|
||||
// Regrade quizzes.
|
||||
'mod/quiz:regrade' => array(
|
||||
'riskbitmask' => RISK_SPAM | RISK_XSS,
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2009042000; // The (date) version of this module
|
||||
$module->version = 2009111900; // The (date) version of this module
|
||||
$module->requires = 2009041700; // Requires this Moodle version
|
||||
$module->cron = 0; // How often should cron check this module (seconds)?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue