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