Code Duplication    Length = 5-7 lines in 2 locations

include/phpmailer/extras/htmlfilter.php 2 locations

@@ 590-594 (lines=5) @@
587
            }
588
            preg_match_all("/url\s*\((.+)\)/si", $attvalue, $aMatch);
589
            if (count($aMatch)) {
590
                foreach ($aMatch[1] as $sMatch) {
591
                    $urlvalue = $sMatch;
592
                    tln_fixurl($attname, $urlvalue, $trans_image_path, $block_external_images);
593
                    $attary[$attname] = str_replace($sMatch, $urlvalue, $attvalue);
594
                }
595
            }
596
        }
597
    }
@@ 775-781 (lines=7) @@
772
    preg_match_all("/url\s*\((.+)\)/si", $content, $aMatch);
773
    if (count($aMatch)) {
774
        $aValue = $aReplace = [];
775
        foreach ($aMatch[1] as $sMatch) {
776
            // url value
777
            $urlvalue = $sMatch;
778
            tln_fixurl('style', $urlvalue, $trans_image_path, $block_external_images);
779
            $aValue[]   = $sMatch;
780
            $aReplace[] = $urlvalue;
781
        }
782
        $content = str_replace($aValue, $aReplace, $content);
783
    }
784