ZF-5155: Zend_File_Transfer_Adapter_Abstract setDestination should check if the directory is writable
Description
this can be done by replacing is_dir by is_writable on line 948
public function setDestination($destination, $files = null)
{
//echo "
setDestination()
";
$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');
}
Comments
Posted by Thomas Weidner (thomas) on 2008-12-05T12:14:57.000+0000
This code allows filenames to be set as directory which is a absolut no-go.