Login: enabled DiffieHellman on IE8
authorDan
Sun, 09 Aug 2009 01:26:57 -0400
changeset 1077 7f621a3a9cbf
parent 1076 9c364fded738
child 1078 67a4c839c7e1
Login: enabled DiffieHellman on IE8
includes/clientside/static/enano-lib-basic.js
includes/clientside/static/login.js
--- a/includes/clientside/static/enano-lib-basic.js	Fri Aug 07 10:22:09 2009 -0400
+++ b/includes/clientside/static/enano-lib-basic.js	Sun Aug 09 01:26:57 2009 -0400
@@ -52,10 +52,10 @@
   thestring = string;
   return place ? true : false;
 }
-if (checkIt('msie')) IE = true;
-else IE = false;
 
-var is_Opera = checkIt('opera') ? true : false;
+var IE = checkIt('msie');
+var IE_8 = checkIt('msie 8.');
+var is_Opera = checkIt('opera');
 var is_iPhone = checkIt('iphone') || checkIt('ipod');
 var is_iPhone_3 = checkIt('iphone os 3_');
 var is_firefox2 = checkIt('firefox/2.');
--- a/includes/clientside/static/login.js	Fri Aug 07 10:22:09 2009 -0400
+++ b/includes/clientside/static/login.js	Sun Aug 09 01:26:57 2009 -0400
@@ -98,7 +98,7 @@
  * @var bool
  */
 
-var ajax_login_prevent_dh = IE || ( is_iPhone && !is_iPhone_3 );
+var ajax_login_prevent_dh = ( IE && !IE_8 ) || ( is_iPhone && !is_iPhone_3 );
 
 /**
  * Performs the AJAX request to get an encryption key and from there spawns the login form.
@@ -341,7 +341,7 @@
       var detail_msg = $lang.get('user_login_ajax_err_crypto_details');
       var full_link = $lang.get('user_login_ajax_err_crypto_link');
       var link = document.createElement('a');
-      link.href = makeUrlNS('Special', 'Login/' + title);
+      link.href = makeUrlNS('Special', 'Login/' + title, 'level=' + logindata.user_level, true);
       link.appendChild(document.createTextNode(full_link));
       var span = document.createElement('span');
       span.style.fontSize = 'smaller';