MDL-23872 Forms Library : Updated MoodleQuickForm to honour setConstant(), prevents injection.
This commit is contained in:
committed by
Aparup Banerjee
parent
3fdc622697
commit
f1f70bd4dd
@@ -1576,6 +1576,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