#53314, upload.module JavaScript broken on Firefox 1.0.x, patch by tenrapid
parent
e9985c2195
commit
2d1aeff2d1
|
@ -140,6 +140,8 @@ function redirectFormButton(uri, button, handler) {
|
|||
// Get response from iframe body
|
||||
try {
|
||||
response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML;
|
||||
// Firefox 1.0.x hack: Replace control characters
|
||||
response = response.replace(/[\f\n\r\t\v]/g, ' ');
|
||||
if (window.opera) {
|
||||
// Opera-hack: it returns innerHTML sanitized.
|
||||
response = response.replace(/"/g, '"');
|
||||
|
|
Loading…
Reference in New Issue