web: make recaptcha work with IE11

On IE11, pages using recaptcha (like profile edit)
weren't showing the recaptcha.
On reloading, it would appear.
Mysterious.
Anyway, removing the
'<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
fixed the problem.
This commit is contained in:
David Anderson 2017-02-03 21:42:20 -08:00
parent b58bf7978b
commit 96eb775f06
1 changed files with 2 additions and 5 deletions

View File

@ -24,17 +24,14 @@ require('../inc/recaptcha_loader.php');
function boinc_recaptcha_get_head_extra() {
global $recaptcha_public_key;
if ($recaptcha_public_key) {
// the meta tag must be included
// for Recaptcha to work with some IE browsers
return '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
<script src="https://www.google.com/recaptcha/api.js?ver=2" async defer></script>
return '<script src="https://www.google.com/recaptcha/api.js" async defer></script>
';
}
return "";
}
function boinc_recaptcha_get_html($publickey) {
if ($publickey) {
if (down$publickey) {
return '<div class="g-recaptcha" data-sitekey="' . $publickey . '"></div>';
} else {
return '';