Permalink
Browse files

MDL-23872 Forms Library : Updated MoodleQuickForm to honour setConsta…

…nt(), prevents injection.
  • Loading branch information...
1 parent 80eb52c commit 339c198adedd8a17a9dd07b283f42a14a90505f8 Daren Chandisingh committed with nebgor Feb 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/formslib.php
View
@@ -1574,6 +1574,10 @@ function exportValues($elementList = null){
}
}
+ if (is_array($this->_constantValues)) {
+ $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues);
+ }
+
return $unfiltered;
}
/**

0 comments on commit 339c198

Please sign in to comment.