diff --git a/plugins/cck_field/upload_image/upload_image.php b/plugins/cck_field/upload_image/upload_image.php
index d18c96fc0..5a8c14aa7 100644
--- a/plugins/cck_field/upload_image/upload_image.php
+++ b/plugins/cck_field/upload_image/upload_image.php
@@ -386,7 +386,7 @@ public function onCCK_FieldPrepareForm( &$field, $value = '', &$config = array()
';
} else {
- $thumb_location = str_replace( $title,'_thumb'.( $options2['form_preview'] - 2 ).'/'.$title,$value['image_location'] );
+ $thumb_location = str_replace( '/'.$title.'.','/_thumb'.( $options2['form_preview'] - 2 ).'/'.$title.'.',$value['image_location'] );
$preview = '
';
@@ -909,4 +909,4 @@ protected static function _getUserFile( $idx, $userfile, $xk, $name = '' )
return $userfile;
}
}
-?>
\ No newline at end of file
+?>