line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Proxy::BodyFilter::tags; |
2
|
|
|
|
|
|
|
$HTTP::Proxy::BodyFilter::tags::VERSION = '0.304'; |
3
|
4
|
|
|
4
|
|
18184
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
142
|
|
4
|
4
|
|
|
4
|
|
17
|
use Carp; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
240
|
|
5
|
4
|
|
|
4
|
|
1136
|
use HTTP::Proxy::BodyFilter; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
96
|
|
6
|
4
|
|
|
4
|
|
18
|
use vars qw( @ISA ); |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
504
|
|
7
|
|
|
|
|
|
|
@ISA = qw( HTTP::Proxy::BodyFilter ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub filter { |
10
|
11
|
|
|
11
|
1
|
4919
|
my ( $self, $dataref, $message, $protocol, $buffer ) = @_; |
11
|
11
|
100
|
|
|
|
23
|
return if not defined $buffer; # last "tags" |
12
|
|
|
|
|
|
|
|
13
|
10
|
|
|
|
|
16
|
my $idx = rindex( $$dataref, '<' ); |
14
|
10
|
100
|
|
|
|
55
|
if ( $idx > rindex( $$dataref, '>' ) ) { |
15
|
3
|
|
|
|
|
4
|
$$buffer = substr( $$dataref, $idx ); |
16
|
3
|
|
|
|
|
7
|
$$dataref = substr( $$dataref, 0, $idx ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
3
|
|
|
3
|
1
|
4
|
sub will_modify { 0 } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |