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