Skip to content

Commit

Permalink
make sure to call the correct as_string()
Browse files Browse the repository at this point in the history
As $f is not an object, calling $f->as_string fails.
Tell Perl where to find the as_string we want.

While I'm at it, make some minor changes to the documentation.
  • Loading branch information
marschap committed Oct 2, 2011
1 parent db0b090 commit 47f3b90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Net/LDAP/Control/Assertion.pm
Expand Up @@ -35,7 +35,7 @@ sub assertion {
}
elsif (exists $self->{value}) {
my $f = $Filter->decode($self->{value});
$self->{asn} ||= $f->as_string
$self->{asn} ||= Net::LDAP::Filter::as_string($f)
if (ref $f);
}

Expand Down Expand Up @@ -84,7 +84,7 @@ manipulation of objects that represent the C<Assertion Control> as described
by RFC 4528.
The C<Assertion Control> allows the client to specify a condition, an assertion,
that must be true for the operation to be processed normally.
that must be TRUE for the operation to be processed normally.
Otherwise, the operation is not performed.
For instance, the control can be used with the Modify operation to perform
atomic "test and set" and "test and clear" operations.
Expand All @@ -102,7 +102,7 @@ L<Net::LDAP::Control> the following are provided.
=item assertion => FILTER
A filter specifying the assertion that must valuate to true in order to make the
A filter specifying the assertion that must evaluate to TRUE in order to make the
operation process normally.
=back
Expand Down

0 comments on commit 47f3b90

Please sign in to comment.