Changeset 23951
- Timestamp:
- 11/14/09 21:44:22 (4 years ago)
- Files:
-
- branches/1.2/lib/validator/sfValidatorFile.class.php (modified) (1 diff)
- branches/1.3/lib/validator/sfValidatorFile.class.php (modified) (1 diff)
- branches/1.4/lib/validator/sfValidatorFile.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/validator/sfValidatorFile.class.php
r23074 r23951 251 251 { 252 252 ob_start(); 253 passthru(sprintf('file -bi %s 2>/dev/null', escapeshellarg($file)), $return); 253 //need to use --mime instead of -i. see #6641 254 passthru(sprintf('file -b --mime %s 2>/dev/null', escapeshellarg($file)), $return); 254 255 if ($return > 0) 255 256 { branches/1.3/lib/validator/sfValidatorFile.class.php
r23073 r23951 254 254 { 255 255 ob_start(); 256 passthru(sprintf('file -bi %s 2>/dev/null', escapeshellarg($file)), $return); 256 //need to use --mime instead of -i. see #6641 257 passthru(sprintf('file -b --mime %s 2>/dev/null', escapeshellarg($file)), $return); 257 258 if ($return > 0) 258 259 { branches/1.4/lib/validator/sfValidatorFile.class.php
r23073 r23951 254 254 { 255 255 ob_start(); 256 passthru(sprintf('file -bi %s 2>/dev/null', escapeshellarg($file)), $return); 256 //need to use --mime instead of -i. see #6641 257 passthru(sprintf('file -b --mime %s 2>/dev/null', escapeshellarg($file)), $return); 257 258 if ($return > 0) 258 259 {