Fix invalid and infinite redirect for unsupported browsers

pull/177/head
Aleksander Machniak 11 years ago
parent ed1222e453
commit a5f8c8307a

@ -143,7 +143,7 @@ function rcube_webmail()
this.task = this.env.task;
// check browser
if (!bw.dom || !bw.xmlhttp_test() || (bw.mz && bw.vendver < 1.9) || (bw.ie && bw.vendver < 7)) {
if (this.env.server_error != 409 && (!bw.dom || !bw.xmlhttp_test() || (bw.mz && bw.vendver < 1.9) || (bw.ie && bw.vendver < 7))) {
this.goto_url('error', '_code=0x199');
return;
}
@ -6843,7 +6843,7 @@ function rcube_webmail()
param[k] = query[k];
}
return base + '&' + $.param(param) + querystring;
return base + (base.indexOf('?') > -1 ? '&' : '?') + $.param(param) + querystring;
};
this.redirect = function(url, lock)

Loading…
Cancel
Save