MDL-23872 Forms Library : Updated MoodleQuickForm to honour setConstant(), prevents injection.
This commit is contained in:
committed by
Aparup Banerjee
parent
80eb52c415
commit
339c198ade
@@ -1574,6 +1574,10 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($this->_constantValues)) {
|
||||
$unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues);
|
||||
}
|
||||
|
||||
return $unfiltered;
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user