Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.432
diff -u -p -r1.432 theme.inc
--- includes/theme.inc	16 Aug 2008 21:05:49 -0000	1.432
+++ includes/theme.inc	2 Sep 2008 13:49:42 -0000
@@ -1164,10 +1164,10 @@ function theme_links($links, $attributes
  *   A string containing the image tag.
  */
 function theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
-  if (!$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) {
+  if (strpos($path, 'http:') === 0 || strpos($path, 'https:') === 0 || !$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) {
     $attributes = drupal_attributes($attributes);
     $url = (url($path) == $path) ? $path : (base_path() . $path);
-    return '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . (isset($image_attributes) ? $image_attributes : '') . $attributes . ' />';
+    return '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '"' . (isset($image_attributes) && !empty($image_attributes) ? ' ' . $image_attributes : '') . (isset($attributes) && !empty($attributes) ? $attributes . ' ' : ' ') . '/>';
   }
 }
 
