#53314, upload.module JavaScript broken on Firefox 1.0.x, patch by tenrapid

4.7.x
Gerhard Killesreiter 2006-03-24 13:17:17 +00:00
parent e9985c2195
commit 2d1aeff2d1
1 changed files with 2 additions and 0 deletions

View File

@ -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, '"');