Ticket #6720: 6720.patch

File 6720.patch, 785 bytes (added by Alfonso Martínez de Lizarrondo, 10 years ago)

Proposed patch

  • _source/plugins/htmldataprocessor/plugin.js

     
    272272                defaultHtmlFilterRules.elements[ i ] = unprotectReadyOnly;
    273273        }
    274274
    275         var protectAttributeRegex = /<((?:a|area|img|input)[\s\S]*?\s)((href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))([^>]*)>/gi,
     275        var protectAttributeRegex = /<((?:a|area|img|input)\b[\s\S]*?\s)((href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))([^>]*)>/gi,
    276276                findSavedSrcRegex = /\s_cke_saved_src\s*=/;
    277277
    278278        var protectElementsRegex = /(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,
© 2003 – 2020 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy