line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::Application::Plugin::Authentication::Driver::Filter::strip; |
2
|
|
|
|
|
|
|
$CGI::Application::Plugin::Authentication::Driver::Filter::strip::VERSION = '0.21'; |
3
|
1
|
|
|
1
|
|
48406
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
191
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub check { |
7
|
2
|
100
|
|
2
|
1
|
5
|
return ( _strip( $_[2] ) eq $_[3] ) ? 1 : 0; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub filter { |
11
|
1
|
|
|
1
|
1
|
118
|
return _strip( $_[2] ); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub _strip { |
15
|
3
|
|
|
3
|
|
5
|
my $str = shift; |
16
|
3
|
|
|
|
|
9
|
$str =~ s/^\s+//; |
17
|
3
|
|
|
|
|
10
|
$str =~ s/\s+$//; |
18
|
3
|
|
|
|
|
17
|
return $str; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
__END__ |