Commit 2d1aeff2 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

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

parent e9985c21
......@@ -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, '"');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment