ZF-5164: Zend_Form_Elment_File::getValues() should check if the element have been uploaded

Description

If the file element is set as not required and in the case it haven't been uploaded, Zend_Form_Elment_File::getValues( )return the last directory name instead of null. On my debian box tmp is returned.

\

Possible fix :\


if (!$this->isRequired() && !$this->isUploaded()) {
     return null;
}

Comments

Fixed with r13042