Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 10, 2023
1 parent 21fbd07 commit e6a0f42
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
0.08
- add TO_JSON method
- substitute offset numbers by constants
- fix typos in pod documentation
Expand Down
2 changes: 1 addition & 1 deletion README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GDPR::IAB::TCFv2 - Transparency & Consent String version 2 parser

=head1 VERSION

Version 0.07
Version 0.08

=head1 SYNOPSIS

Expand Down
4 changes: 2 additions & 2 deletions lib/GDPR/IAB/TCFv2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use GDPR::IAB::TCFv2::BitUtils qw<is_set
use GDPR::IAB::TCFv2::PublisherRestrictions;
use GDPR::IAB::TCFv2::RangeSection;

our $VERSION = "0.07";
our $VERSION = "0.08";

use constant {
CONSENT_STRING_TCF2_SEPARATOR => '.',
Expand Down Expand Up @@ -591,7 +591,7 @@ GDPR::IAB::TCFv2 - Transparency & Consent String version 2 parser
=head1 VERSION
Version 0.07
Version 0.08
=head1 SYNOPSIS
Expand Down
14 changes: 14 additions & 0 deletions t/01-parse.t
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,20 @@ subtest "invalid tcf consent string candidates" => sub {
qr/invalid base64 format/,
'string is not a base64 url encoded string';

throws_ok {
GDPR::IAB::TCFv2->Parse('COvcSpYOvcSpYC9AAAENAPCAAAAAAAAAAAAAAFAAAAA')
}
qr/index our of bounds on offset 256/,
'this test uses a crafted consent uses bit field, declares 10 vendors and legitimate interest without required content';

throws_ok {
GDPR::IAB::TCFv2->Parse(
'COvcSpYOvcSpYC9AAAENAPCAAAAAAAAAAAAAAFQBgAAgABAACAAEAAQAAgAA')
}
qr/index our of bounds on offset 360/,
'this test uses a crafted consent uses range section, declares 10 vendors, 6 exceptions and legitimate interest without require';


done_testing;
};

Expand Down

0 comments on commit e6a0f42

Please sign in to comment.