Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.0
-
Fix Version/s: 1.7.2
-
Component/s: Zend_File_Transfer
-
Labels:None
Description
this can be done by replacing is_dir by is_writable on line 948
public function setDestination($destination, $files = null) { //echo "<br>setDestination()<br>"; $orig = $files; $destination = rtrim($destination, "/\\"); if (!is_writable($destination)) { require_once 'Zend/File/Transfer/Exception.php'; throw new Zend_File_Transfer_Exception('The given destination is no directory or does not exist'); }
This code allows filenames to be set as directory which is a absolut no-go.