Remove optional argument leftover

pull/7135/head
Aleksander Machniak 5 years ago
parent 37cfa0a43b
commit 52caed0d66

@ -840,7 +840,7 @@ function rcmail_wash_html($html, $p, $cid_replaces = array())
$meta = '<meta charset="'.RCUBE_CHARSET.'" />';
// remove old meta tag and add the new one, making sure that it is placed in the head (#3510, #7116)
$html = preg_replace('/<meta[^>]+charset=[a-z0-9_"-]+[^>]*>/Ui', '', $html, -1);
$html = preg_replace('/<meta[^>]+charset=[a-z0-9_"-]+[^>]*>/Ui', '', $html);
$html = preg_replace('/(<head[^>]*>)/Ui', '\\1'.$meta, $html, -1, $rcount);
if (!$rcount) {

Loading…
Cancel
Save