summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js2
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, '"');