thomascube
2008-07-25 6d5dbae53cd4b4b97da0b0c558292a7f1062a524
program/steps/mail/func.inc
@@ -563,7 +563,10 @@
        $html = '<head></head>' . $html;
      $html = substr_replace($html, '<meta http-equiv="Content-Type" content="text/html; charset='.RCMAIL_CHARSET.'" />', intval(stripos($html, '</head>')), 0);
    }
    // PHP bug #32547 workaround: remove title tag
    $html = preg_replace('/<title>.*<\/title>/', '', $html);
    // clean HTML with washhtml by Frederic Motte
    $wash_opts = array(
      'show_washed' => false,
@@ -595,7 +598,7 @@
  // text/enriched
  else if ($part->ctype_secondary=='enriched') {
    $part->ctype_secondary = 'html';
    return Q(enriched_to_html($body), 'show');
    return Q(enriched_to_html($part->body), 'show');
  }
  else
    $body = $part->body;