Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIXED] SERIOUS BUG IN THE VALUE OF "token" #421

Closed
azumakuniyuki opened this issue Dec 10, 2020 · 1 comment
Closed

[FIXED] SERIOUS BUG IN THE VALUE OF "token" #421

azumakuniyuki opened this issue Dec 10, 2020 · 1 comment
Labels

Comments

@azumakuniyuki
Copy link
Member

azumakuniyuki commented Dec 10, 2020

We found a serious bug at the value of "token" in the parsed results only in the Perl version of sisimai since v4.22.1p1 (Released 2017 Summer). The value of token generated by Sisimai::Data->new method between v4.22.1p1 to v4.25.9 returns a meaningless value because there were wrong arguments for Sisimai::String->token method call.

The bug will be fixed at the next release v4.25.10.

We do recommend regenerate each token value in parsed results generated by sisimai v4.22.1p1 or later like the following code when you are using token at an email address database and so on.

#!/usr/bin/env perl
use strict;
use warnings;
use Sisimai::String;

my $as = shift; # Addresser email address
my $ar = shift; # Recipient email address
my $ts = shift; # Timestamp, should be UNIX machine time
printf("%s\n", Sisimai::String->token($as, $ar, $ts);
@azumakuniyuki
Copy link
Member Author

FIXED AT 4.25.10

@azumakuniyuki azumakuniyuki changed the title SERIOUS BUG IN THE VALUE OF "token" [FIXED] SERIOUS BUG IN THE VALUE OF "token" Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant