Ticket #4719: 4719_2.patch
File 4719_2.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/core/htmlparser/basicwriter.js
60 60 */ 61 61 attribute : function( attName, attValue ) 62 62 { 63 // Browsers don't always escape quote in attribute values. (#4683) 64 attValue = attValue.replace( /"/g, '"' ) 65 63 attValue = CKEDITOR.tools.htmlEncode( attValue ); 66 64 this._.output.push( ' ', attName, '="', attValue, '"' ); 67 65 }, 68 66 -
_source/core/tools.js
316 316 return fix2( text ).replace( / /g, ' ' ); 317 317 } : 318 318 fix2; 319 320 var fix4 = ( standard( '"' ) == '"') ? 321 function( text ) 322 { 323 // Browsers don't always escape quote in attribute values #4683, #4719. 324 return fix3( text ).replace(/"/g, '"'); 325 } : 326 fix3; 327 328 this.htmlEncode = fix4; 319 329 320 this.htmlEncode = fix3;321 322 330 return this.htmlEncode( text ); 323 331 }, 324 332 -
_source/plugins/htmlwriter/plugin.js
174 174 if ( this.forceSimpleAmpersand ) 175 175 attValue = attValue.replace( /&/, '&' ); 176 176 177 // Browsers don't always escape quote in attribute values. (#4683) 178 attValue = attValue.replace( /"/g, '"' ) 177 attValue = CKEDITOR.tools.htmlEncode( attValue ); 179 178 180 179 this._.output.push( ' ', attName, '="', attValue, '"' ); 181 180 },