View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0001387 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2009-10-13 01:18 | 2012-12-10 13:45 | 
| Reporter | kdasdasf | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | resolved | Resolution | fixed | ||
| Product Version | 4.1.6 revision 22740 | ||||
| Fixed in Version | 4.2.0 revision 23610 | ||||
| Summary | 0001387: oxutilsfile::_moveImage doesn't work if sCompileDir == upload dir | ||||
| Description | If sCompileDir (= oxutilsfile::processFiles::$sTmpDir) equals the PHP upload directory then move_uploaded_file will fail because $sSource equals $sTarget. ---( Fix )--- protected function _moveImage( $sSource, $sTarget ) { if ( $sSource == $sTarget ) { return chmod( $sTarget, 0644 ); } if ( move_uploaded_file( $sSource, $sTarget ) ) ) { return $this->_moveImage( $sTarget, $sTarget ); } return FALSE; } --- | ||||
| Tags | No tags attached. | ||||
| Theme | |||||
| Browser | All | ||||
| PHP Version | 5.2.6 | ||||
| Database Version | 5.0.33 | ||||
