Changeset 6992
- Timestamp:
- 01/08/08 02:03:53 (11 months ago)
- Files:
-
- branches/dwhittle/1.0/lib/response/sfWebResponse.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/form/sfForm.class.php (modified) (3 diffs)
- branches/dwhittle/1.1/lib/response/sfWebResponse.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/validator/sfValidatorSchema.class.php (modified) (2 diffs)
- branches/dwhittle/NOTES (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwhittle/1.0/lib/response/sfWebResponse.class.php
r6795 r6992 235 235 public function setContentType($value) 236 236 { 237 // add charset if needed on text/*, *xml237 // add charset if needed (only on text content) 238 238 if (false === stripos($value, 'charset') && (0 === stripos($value, 'text/') || strlen($value) - 3 === strripos($value, 'xml'))) 239 239 { branches/dwhittle/1.1/lib/form/sfForm.class.php
r6971 r6992 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))); branches/dwhittle/1.1/lib/response/sfWebResponse.class.php
r6795 r6992 247 247 public function setContentType($value) 248 248 { 249 // add charset if needed on text/*, *xml249 // add charset if needed (only on text content) 250 250 if (false === stripos($value, 'charset') && (0 === stripos($value, 'text/') || strlen($value) - 3 === strripos($value, 'xml'))) 251 251 { branches/dwhittle/1.1/lib/validator/sfValidatorSchema.class.php
r6962 r6992 141 141 } 142 142 143 unset($unused[array_search($name, $unused )]);143 unset($unused[array_search($name, $unused, true)]); 144 144 145 145 // validate value … … 166 166 catch (sfValidatorError $e) 167 167 { 168 $clean[$name] = null; 169 168 170 $errorSchema->addError($e, (string) $name); 169 171 } branches/dwhittle/NOTES
r6574 r6992 33 33 * changed default settings to be more generic 34 34 35 En ivronments:35 Environments: 36 36 * added cli environment for symfony command line + tasks + batch scripts 37 37 * addition of qa + staging environments