Ticket #2990: inlineuploadIEfix.patch
| File inlineuploadIEfix.patch, 0.9 kB (added by intoxination, 2 years ago) |
|---|
-
wp-admin/inline-uploading.php
old new 431 431 function sendToEditor(n) { 432 432 o = document.getElementById('div'+n); 433 433 h = o.innerHTML.replace(new RegExp('^\\s*(.*?)\\s*$', ''), '$1'); // Trim 434 h = h.replace(new RegExp(' (class|title|width|height|id|onclick|onmousedown)=([^\'"][^ ]*)( |/|>)', 'g'), ' $1="$2"$3'); // Enclose attribs in quotes434 h = h.replace(new RegExp(' (class|title|width|height|id|onclick|onmousedown)=([^\'"][^ ]*)(?=( |/|>))', 'g'), ' $1="$2"'); // Enclose attribs in quotes 435 435 h = h.replace(new RegExp(' (width|height)=".*?"', 'g'), ''); // Drop size constraints 436 436 h = h.replace(new RegExp(' on(click|mousedown)="[^"]*"', 'g'), ''); // Drop menu events 437 437 h = h.replace(new RegExp('<(/?)A', 'g'), '<$1a'); // Lowercase tagnames
