diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 094e877dc..ed75b2d8a 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -840,7 +840,7 @@ function rcmail_wash_html($html, $p, $cid_replaces = array()) $meta = ''; // remove old meta tag and add the new one, making sure that it is placed in the head (#3510, #7116) - $html = preg_replace('/]+charset=[a-z0-9_"-]+[^>]*>/Ui', '', $html, -1); + $html = preg_replace('/]+charset=[a-z0-9_"-]+[^>]*>/Ui', '', $html); $html = preg_replace('/(]*>)/Ui', '\\1'.$meta, $html, -1, $rcount); if (!$rcount) {