Ticket #4357: 4357.patch

File 4357.patch, 1.2 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • editor/dialog/fck_paste.html

     
    5656                        'javascript:void( (function(){' +
    5757                                'document.open() ;' +
    5858                                'document.domain=\'' + document.domain + '\' ;' +
    59                                 'document.write(\'<html><head><script>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>\') ;' +
     59                                'document.write(\'<html><head><scr' + 'ipt>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>\') ;' +
    6060                                'document.close() ;' +
    6161                                'document.body.contentEditable = true ;' +
    6262                                'window.focus() ;' +
     
    7373                        // Avoid errors if the pasted content has any script that fails: #389
    7474                        var oDoc = oFrame.contentWindow.document ;
    7575                        oDoc.open() ;
    76                         oDoc.write('<html><head><script>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>') ;
     76                        oDoc.write('<html><head><scr' + 'ipt>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>') ;
    7777                        oDoc.close() ;
    7878
    7979                        if ( FCKBrowserInfo.IsIE )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy