Changeset 2246 for branches/2.0


Ignore:
Timestamp:
03/15/10 13:41:04 (14 years ago)
Author:
niltonneto
Message:

Ticket #925 - Aplicação de melhoria no bloqueio de imagens nos estilos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/js/draw_api.js

    r2157 r2246  
    17161716        td.colSpan = '2'; 
    17171717        div.appendChild(table_message_others_options); 
    1718         var imgTag = info_msg.body.match(/(<img[^>]*src[^=]*=['"][^'"]*["'][^>]*>)|(<td[^>]*background[^=]*=['"][^'"]*["'][^>]*>)/gi); 
    1719         var newBody = info_msg.body; 
     1718    var imgTag = info_msg.body.match(/(<img[^>]*src[^>=]*=['"]?[^'">]*["']?[^>]*>)|(<[^>]*(background[^=>]*=['"][^'">]*["']|style[^=>]*=['"][^>]*background(-image)?:[^:;>]*url\()[^>]*>)/gi);   
     1719    var newBody = info_msg.body; 
    17201720        if(!info_msg.showImg && imgTag) 
    17211721        { 
Note: See TracChangeset for help on using the changeset viewer.