Index: misc/drupal.js =================================================================== RCS file: /cvs/drupal/drupal/misc/drupal.js,v retrieving revision 1.29 diff -u -p -r1.29 drupal.js --- misc/drupal.js 14 Oct 2006 02:39:48 -0000 1.29 +++ misc/drupal.js 14 Dec 2006 15:54:06 -0000 @@ -57,6 +57,10 @@ Drupal.redirectFormButton = function (ur // Firefox 1.0.x hack: Remove (corrupted) control characters response = response.replace(/[\f\n\r\t]/g, ' '); if (window.opera) { + // Opera-hack: it fires this function twice on the first upload. + if (response == 0) { + return; + } // Opera-hack: it returns innerHTML sanitized. response = response.replace(/"/g, '"'); }