=== modified file 'sites/all/modules/smileys/smileys.module'
--- sites/all/modules/smileys/smileys.module	2009-07-07 21:21:08 +0000
+++ sites/all/modules/smileys/smileys.module	2009-07-11 23:58:22 +0000
@@ -1,6 +1,15 @@
 <?php
 // $Id: smileys.module,v 1.48.2.17 2009/06/27 15:54:50 Gurpartap Exp $
 
+/* According to 'Drupal common practice' the image URL output in node text should
+ * be a relative one. (This a.o. keeps image links consistent over both http and https).
+ * However, this can break image links in RSS feeds in Drupal 6. A solution for this is
+ * to make this module output absolute image URLs.
+ * (Another solution, if you want to make both https and RSS feeds work well,
+ * is to keep the below variable at FALSE and install the pathologic module.)
+ */
+define(SMILEYS_ABSOLUTE_URLS, TRUE);
+
 /**
  * Implementation of hook_help().
  */
@@ -205,10 +214,11 @@
   $header = array(t('Smiley'), t('Acronyms'));
   $rows = array();
   $list = _smileys_list(1, " ORDER BY weight");
+  $base = (SMILEYS_ABSOLUTE_URLS ? $GLOBALS['base_url'] : '') . base_path();
   foreach ($list as $smiley) {
     $acronyms = explode(' ', $smiley->acronyms);
     $rows[] = array(
-      '<img src="'. check_url($GLOBALS['base_url'] .'/'. $smiley->image) .'" alt="'. $acronyms[0] .'" title="'. check_plain($smiley->description) .'" class="smiley-class" />',
+      '<img src="'. check_url($base . $smiley->image) . '" alt="' . $acronyms[0] . '" title="' . check_plain($smiley->description) . '" class="smiley-class" />',
       check_plain($smiley->acronyms)
     );
   }
@@ -275,14 +285,15 @@
       }
     }
     else if (!$ignore) {
+      $base = (SMILEYS_ABSOLUTE_URLS ? $GLOBALS['base_url'] : '') . base_path();
       foreach ($list as $smiley) {
         $acronyms = explode(" ", $smiley->acronyms);
         $alt = str_replace('\\', '\\\\', check_plain($smiley->description));
         foreach ($acronyms as $a) {
           if ($smiley->standalone)
-            $chunk = eregi_replace("([ ,\.\?!:\(\)\r\n\<\>])". preg_quote($a) ."([ ,\.\?!:\(\)\r\n\<\>])", "\\1<img src=\"". check_url($GLOBALS['base_url'] .'/'. $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" class=\"smiley-content\"/>\\2", $chunk);
+            $chunk = eregi_replace('([ ,\.\?!:\(\)\r\n\<\>])' . preg_quote($a) . '([ ,\.\?!:\(\)\r\n\<\>])', '\\1<img src="' . check_url($base . $smiley->image) . '" title="' . check_plain($alt) . '" alt="' . check_plain($alt) . '" class="smiley-content"/>\\2', $chunk);
           else
-            $chunk = eregi_replace(preg_quote($a), '<img src="'. check_url($GLOBALS['base_url'] .'/'. $smiley->image) .'" title="'. check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $chunk);
+            $chunk = eregi_replace(preg_quote($a), '<img src="' . check_url($base . $smiley->image) . '" title="' . check_plain($alt) . '" alt="' . check_plain($alt) . '" />', $chunk);
         }
       }
     }  

