0

Website Fix: Chrome login from Forum problem.

Apparently, Chrome would not redirect after login. This seems to be an issue with common.js in Discuz 7.2

Had to hack Discuz 7.2 common.js to fix login problems on Chrome.

 

Had to change:

if(BROWSER.ie) { s = $(ajaxframeid).contentWindow.document.XMLDocument.text; } else { s = $(ajaxframeid).contentWindow.document.documentElement.firstChild.wholeText; }

 

to:

 

if(BROWSER.ie) { s = $(ajaxframeid).contentWindow.document.XMLDocument.text; } else if (BROWSER.chrome > ‘0’) { s = $(ajaxframeid).contentWindow.document.firstChild.textContent; } else { s = $(ajaxframeid).contentWindow.document.documentElement.firstChild.wholeText; }

facebooktwittergoogle plus