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;
|
||||
}
|
||||
|
||||
if (openssl_verify(
|
||||
$hashHeader . $hashObject, base64_decode($this->getSignatureValue()),
|
||||
$this->getPublicKey(), $algo
|
||||
) === 1) {
|
||||
$signed = base64_decode($this->getSignatureValue());
|
||||
if ($signed !== false
|
||||
&& openssl_verify(
|
||||
$hashHeader . $hashObject, $signed, $this->getPublicKey(), $algo
|
||||
) === 1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue