avoid a security patch and resultant compatibility issues; instead restrict the input characters we accept in token verification strings to hex digits. This will all be changing in the coming weeks/months anyway.
This commit is contained in:
parent
03b31932d1
commit
1305584d77
@ -133,7 +133,7 @@ function zot_build_packet($channel, $type = 'notify', $recipients = null, $remot
|
||||
}
|
||||
|
||||
if ($secret) {
|
||||
$data['secret'] = $secret;
|
||||
$data['secret'] = preg_replace('/[^0-9a-fA-F]/','',$secret);
|
||||
$data['secret_sig'] = base64url_encode(rsa_sign($secret,$channel['channel_prvkey']));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user