Fix checks based on window.ActiveXObject in IE > 10

Conflicts:
	CHANGELOG
release-1.0
Aleksander Machniak 10 years ago
parent 37757464fd
commit b134f59eb1

@ -4,6 +4,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where some valid text in a message was handled as uuencoded attachment
- Fix wrong icon for download button in classic skin
- Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208)
- Fix checks based on window.ActiveXObject in IE > 10
RELEASE 1.0.4
-------------

@ -7680,7 +7680,7 @@ function rcube_webmail()
if (plugin && plugin.enabledPlugin)
return 1;
if (window.ActiveXObject) {
if ('ActiveXObject' in window) {
try {
if (axObj = new ActiveXObject("AcroPDF.PDF"))
return 1;
@ -7713,7 +7713,7 @@ function rcube_webmail()
if (plugin && plugin.enabledPlugin)
return 1;
if (window.ActiveXObject) {
if ('ActiveXObject' in window) {
try {
if (axObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))
return 1;

@ -93,7 +93,7 @@ function roundcube_browser()
this.xmlhttp_test = function()
{
var activeX_test = new Function("try{var o=new ActiveXObject('Microsoft.XMLHTTP');return true;}catch(err){return false;}");
this.xmlhttp = (window.XMLHttpRequest || (window.ActiveXObject && activeX_test()));
this.xmlhttp = window.XMLHttpRequest || (('ActiveXObject' in window) && activeX_test());
return this.xmlhttp;
};

Loading…
Cancel
Save