@@ -75,6 +75,17 @@ function format_msg_text($str, $output_mod, $links=true) {
7575 return preg_replace ("/^(>.*<br \/>)/m " , "<span class= \"reply_quote \">$1</span> " , $ str );
7676}}
7777
78+ /**
79+ * Strip DNS prefetch tags from HTML
80+ * @subpackage core/functions
81+ * @param string $html HTML content
82+ * @return string
83+ */
84+ if (!hm_exists ('strip_dns_prefetch_tags ' )) {
85+ function strip_dns_prefetch_tags ($ html ) {
86+ return preg_replace ('/<link\s+[^>]*rel=[" \']dns-prefetch[" \'][^>]*>/i ' , '' , $ html );
87+ }}
88+
7889/**
7990 * Format reply text
8091 * @subpackage core/functions
@@ -119,7 +130,7 @@ function reply_to_address($headers, $type) {
119130 return $ msg_to ;
120131 }
121132 foreach (array ('reply-to ' , 'from ' , 'sender ' , 'return-path ' ) as $ fld ) {
122- if (array_key_exists ($ fld , $ headers )) {
133+ if (array_key_exists ($ fld , $ headers )) {
123134 list ($ parsed , $ msg_to ) = format_reply_address ($ headers [$ fld ], $ parsed );
124135 if ($ msg_to ) {
125136 break ;
@@ -485,7 +496,7 @@ function addr_split($str, $seps = array(',', ';')) {
485496 elseif (!$ capture && in_array ($ str [$ i ], array_keys ($ capture_chars ))) {
486497 $ capture = $ str [$ i ];
487498 }
488-
499+
489500 if (!$ capture && in_array ($ str [$ i ], $ seps )) {
490501 $ words [] = trim ($ word );
491502 $ word = '' ;
0 commit comments