Index: trunk/kernel/include/image.php =================================================================== diff -u -r4077 -r4645 --- trunk/kernel/include/image.php (.../image.php) (revision 4077) +++ trunk/kernel/include/image.php (.../image.php) (revision 4645) @@ -272,7 +272,7 @@ $Dest_Dir = $DestDir; if($this->Pending) $Dest_Dir .= "pending/"; - + if(((int)$file["error"]==0) && (substr($file["type"],0,6)=="image/") && @getimagesize($file["tmp_name"]) ) { $parts = pathinfo($file["name"]); @@ -301,7 +301,7 @@ $result = copy($file["tmp_name"],$destination); if($result) { - @chmod($Dest_Dir.$filename, 0666); + @chmod($destination, 0666); return $Dest_Dir.$filename; } else