kopia lustrzana https://github.com/nextcloud/social
only valid base64
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/304/head
rodzic
23ea6b663d
commit
89cd8fa88c
|
@ -273,10 +273,11 @@ class LinkedDataSignature implements JsonSerializable {
|
||||||
$algo = OPENSSL_ALGO_SHA256;
|
$algo = OPENSSL_ALGO_SHA256;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (openssl_verify(
|
$signed = base64_decode($this->getSignatureValue());
|
||||||
$hashHeader . $hashObject, base64_decode($this->getSignatureValue()),
|
if ($signed !== false
|
||||||
$this->getPublicKey(), $algo
|
&& openssl_verify(
|
||||||
) === 1) {
|
$hashHeader . $hashObject, $signed, $this->getPublicKey(), $algo
|
||||||
|
) === 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue