Changeset 6119


Ignore:
Timestamp:
11/25/2010 10:27:36 PM (4 years ago)
Author:
alfonsoml
Message:

#6720 Improve attribute protection regexp.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r6117 r6119  
    6161                <li><a href="http://dev.ckeditor.com/ticket/6171">#6171</a> : [Firefox] Open rich combo scrolls host page to top when editor has vertical scrollbar.</li> 
    6262                <li><a href="http://dev.ckeditor.com/ticket/6330">#6330</a> : List bullet form MS Word with Roman numbering are not preserved.</li> 
     63                <li><a href="http://dev.ckeditor.com/ticket/6720">#6720</a> : Attribute protection might detect wrong elements.</li> 
    6364        </ul> 
    6465        <h3> 
  • CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js

    r6106 r6119  
    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 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy