svncommit
2006-12-29 3b12aeeeca89bbc3d8cc5342beb07643067e3760
Fix HTML parsing (fixes #1484192)


1 files modified
5 ■■■■■ changed files
program/steps/mail/func.inc 5 ●●●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -1193,7 +1193,8 @@
    // replace all css definitions with #container [def]
    $styles = rcmail_mod_css_styles(substr($body, $pos, $pos2-$pos), $container_id);
    $body = substr($body, 0, $pos) . $styles . substr($body, $pos2);
    $body = substr($body, 0, $pos) . $styles . substr($body, $pos2);
    $body_lc = strtolower($body);
    $last_style_pos = $pos2;
    }
@@ -1203,7 +1204,7 @@
    {
    while (($pos = strpos($body_lc, '<'.$tag)) && ($pos2 = strpos($body_lc, '</'.$tag.'>', $pos)))
      {
      $pos2 += 8;
      $pos2 += strlen('</'.$tag.'>');
      $body = substr($body, 0, $pos) . substr($body, $pos2, strlen($body)-$pos2);
      $body_lc = strtolower($body);
      }