Changeset 5375


Ignore:
Timestamp:
01/12/12 16:17:51 (12 years ago)
Author:
cristiano
Message:

Ticket #2424 - Adicionado codigo para remover tag LINK da apresentação do email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r5373 r5375  
    18341834            // Layout problem: Change html elements 
    18351835            // with absolute position to relate position, CASE INSENSITIVE. 
    1836             $body = @mb_eregi_replace("POSITION: ABSOLUTE;", "", $body); 
    1837  
    1838             //Remove Comentario Expresso  
    1839             $findExpCom[] = '<!-- TAG <'; 
    1840             $findExpCom[] = '> Removed by ExpressoMail -->'; 
    1841             $body = str_replace($findExpCom, '', $body); 
     1836            $body = str_ireplace('POSITION: ABSOLUTE;','', $body); 
     1837 
    18421838            ///--------------------------------//  
    18431839            // tags to be removed doe to security reasons 
     
    18511847                $body = @mb_eregi_replace("<$tag\\b[^>]*>(.*?)</$tag>", '', $body); 
    18521848             
    1853  
    1854             $body = @mb_eregi_replace("<meta[^>]*>", '', $body); 
    1855             $body = @mb_eregi_replace("<base[^>]*>", '', $body); 
     1849            $body = preg_replace('/<(meta|base|link)[^>]*>/i', '', $body); 
    18561850 
    18571851            //try to wrap CSS code instead of remove STYLE tags 
Note: See TracChangeset for help on using the changeset viewer.