diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-24 13:17:17 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-24 13:17:17 +0000 |
commit | 2d1aeff2d1c6d0538ca44a9ed3b47a5481362f67 (patch) | |
tree | cc139c9ca94370b41536d10263314818178c0aef /misc | |
parent | e9985c21959d6a121601264454b205f644e48630 (diff) | |
download | brdo-2d1aeff2d1c6d0538ca44a9ed3b47a5481362f67.tar.gz brdo-2d1aeff2d1c6d0538ca44a9ed3b47a5481362f67.tar.bz2 |
#53314, upload.module JavaScript broken on Firefox 1.0.x, patch by tenrapid
Diffstat (limited to 'misc')
-rw-r--r-- | misc/drupal.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/drupal.js b/misc/drupal.js index d633fa56e..e289d1592 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -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, '"'); |