Permalink
Browse files

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

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

0 comments on commit e39ee61

Please sign in to comment.