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