Skip to content

Commit

Permalink
group publisher section
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 15, 2023
1 parent 88350ac commit acd11b2
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/GDPR/IAB/TCFv2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,12 @@ sub Parse {

croak 'invalid vendor list version' if $self->vendor_list_version == 0;

my $pub_restrict_offset = $self->_parse_vendor_section();
my $next_offset = $self->_parse_vendor_section();

# parse publisher section

# parse publisher restrictions from section core string

$self->_parse_publisher_restrictions($pub_restrict_offset);
$self->_parse_publisher_section($next_offset);

# TODO parse section disclosed vendors if available

# TODO parse section publisher_tc if available

return $self;
}

Expand Down Expand Up @@ -500,6 +494,15 @@ sub _parse_vendor_legitimate_interests {
return $pub_restrict_offset;
}

sub _parse_publisher_section {
my ( $self, $pub_restrict_offset ) = @_;

$self->_parse_publisher_restrictions($pub_restrict_offset);

# TODO parse section publisher_tc if available

}

sub _parse_publisher_restrictions {
my ( $self, $pub_restrict_offset ) = @_;

Expand Down

0 comments on commit acd11b2

Please sign in to comment.