#3054: CKPackager: special characters are incorrectly(?) parsed by
scriptcompressor
---------------------+------------------------------------------------------
 Reporter:  wwalc    |       Owner:                   
     Type:  Bug      |      Status:  new              
 Priority:  Normal   |   Milestone:  CKEditor 3.0     
Component:  General  |     Version:  CKEditor 3.0 Beta
 Keywords:           |  
---------------------+------------------------------------------------------
 If I'm correct, the following code in scriptcompressor.js:

 {{{
 value = value.replace( /[\b\t\n\v\f\r\\]/g, function( match )
 {
         var chars =
         {
                 '\b' : '\\b',
                 '\t' : '\\t',
                 '\n' : '\\n',
                 '\v' : '\\v',
                 '\f' : '\\f',
                 '\r' : '\\r',
                 '\\' : '\\\\'
         };

         return chars[ match ];
 } );
 }}}

 translates back some special ASCII characters (this way if `'\r\n'` was in
 the source code, the compiled version of script also will contain exactly
 the same string: `'\r\n'`).

 However, the code above does not recognize the following characters which
 appear in CKEditor source code:
 {{{
 \ufeff
 \u0085
 \u00a0
 \u1680
 \u280e
 \u2028
 \u2029
 \u202f
 \u205f
 \u3000
 \x1b
 \xa0
 }}}

 Is it done intentionally or is it a bug?
 I suspect it may cause some strange problems sooner or later.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3054>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to