Issues

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

This code allows filenames to be set as directory which is a absolut no-go.