diff --git a/js/solar/homeMQTT.js b/js/solar/homeMQTT.js index d34690f..3fa3ead 100644 --- a/js/solar/homeMQTT.js +++ b/js/solar/homeMQTT.js @@ -399,7 +399,9 @@ function switchFloor(floor){ xmlhttp.onreadystatechange = function () { if (this.readyState === 4 && this.status === 200){ setTimeout(function () { modalEV.hide() }, 700); - alert(xmlhttp.responseText); + if(xmlhttp.responseText){ + alert(xmlhttp.responseText); + } } } const form = document.getElementById('modalEV').querySelector('form'); diff --git a/restricted/WebAuthn/src/WebAuthn.php b/restricted/WebAuthn/src/WebAuthn.php index 2b83520..642d688 100644 --- a/restricted/WebAuthn/src/WebAuthn.php +++ b/restricted/WebAuthn/src/WebAuthn.php @@ -371,11 +371,11 @@ class WebAuthn { } // Android-SafetyNet: if required, check for Compatibility Testing Suite (CTS). - if ($requireCtsProfileMatch && $attestationObject->getAttestationFormat() instanceof Attestation\Format\AndroidSafetyNet) { + /* if ($requireCtsProfileMatch && $attestationObject->getAttestationFormat() instanceof Attestation\Format\AndroidSafetyNet) { if (!$attestationObject->getAttestationFormat()->ctsProfileMatch()) { throw new WebAuthnException('invalid ctsProfileMatch: device is not approved as a Google-certified Android device.', WebAuthnException::ANDROID_NOT_TRUSTED); } - } + }*/ // 15. If validation is successful, obtain a list of acceptable trust anchors $rootValid = is_array($this->_caFiles) ? $attestationObject->validateRootCertificate($this->_caFiles) : null;