Changeset 6990
- Timestamp:
- 01/07/08 21:21:14 (9 months ago)
- Files:
-
- branches/1.1/lib/form/sfForm.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/form/sfForm.class.php
r6969 r6990 114 114 * @param array An array of uploaded files (in the $_FILES or $_GET format) 115 115 */ 116 public function bind( $taintedValues,$taintedFiles = array())116 public function bind(array $taintedValues = null, array $taintedFiles = array()) 117 117 { 118 118 $this->taintedValues = $taintedValues; … … 120 120 $this->isBound = true; 121 121 $this->resetFormFields(); 122 123 if (is_null($this->taintedValues)) 124 { 125 $this->taintedValues = array(); 126 } 122 127 123 128 try … … 650 655 * @return array An array of re-ordered uploaded file information 651 656 */ 652 static public function convertFileInformation( $taintedFiles)657 static public function convertFileInformation(array $taintedFiles) 653 658 { 654 659 return self::pathsToArray(preg_replace('#^(/[^/]+)?(/name|/type|/tmp_name|/error|/size)([^\s]*)( = [^\n]*)#m', '$1$3$2$4', self::arrayToPaths($taintedFiles)));