Index: /branches/release-40/php/lib/MTUtil.php
===================================================================
--- /branches/release-40/php/lib/MTUtil.php (revision 2587)
+++ /branches/release-40/php/lib/MTUtil.php (revision 2595)
@@ -1349,5 +1349,9 @@
     # make url
     $basename = basename($dest);
-    $thumb_url = $blog['blog_site_url'] . $cache_path . '/' . $date_stamp . '/' . $basename;
+    $site_url = $blog['blog_site_url'];
+    if (!preg_match('!/$!', $site_url))
+        $site_url .= '/';
+
+    $thumb_url = $site_url . $cache_path . '/' . $date_stamp . '/' . $basename;
 
     return array($thumb_url, $thumb_w, $thumb_h, $thumb_name);
