line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filter::Urlencode; |
2
|
3
|
|
|
3
|
|
1364
|
use strict; use utf8; use warnings FATAL => 'all'; |
|
3
|
|
|
3
|
|
4
|
|
|
3
|
|
|
3
|
|
77
|
|
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
19
|
|
|
3
|
|
|
|
|
71
|
|
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
138
|
|
3
|
3
|
|
|
3
|
|
15
|
use parent 'DTL::Fast::Filter'; |
|
3
|
|
|
|
|
28
|
|
|
3
|
|
|
|
|
22
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
$DTL::Fast::FILTER_HANDLERS{'urlencode'} = __PACKAGE__; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
149
|
use DTL::Fast::Utils; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
237
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#@Override |
10
|
|
|
|
|
|
|
sub filter |
11
|
|
|
|
|
|
|
{ |
12
|
4
|
|
|
4
|
0
|
3
|
shift; # self |
13
|
4
|
|
|
|
|
4
|
shift; # filter_manager |
14
|
4
|
|
|
|
|
3
|
my $value = shift; # value |
15
|
4
|
|
|
|
|
3
|
shift; #context |
16
|
|
|
|
|
|
|
|
17
|
4
|
|
|
|
|
19
|
return DTL::Fast::Utils::escape($value); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |