| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Mail::DKIM::Canonicalization::dk_nofws; |
|
2
|
8
|
|
|
8
|
|
52
|
use strict; |
|
|
8
|
|
|
|
|
16
|
|
|
|
8
|
|
|
|
|
369
|
|
|
3
|
8
|
|
|
8
|
|
44
|
use warnings; |
|
|
8
|
|
|
|
|
13
|
|
|
|
8
|
|
|
|
|
625
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.20240923'; # VERSION |
|
5
|
|
|
|
|
|
|
# ABSTRACT: nofws canonicalization |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Copyright 2005-2006 Messiah College. All rights reserved. |
|
8
|
|
|
|
|
|
|
# Jason Long |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or |
|
11
|
|
|
|
|
|
|
# modify it under the same terms as Perl itself. |
|
12
|
|
|
|
|
|
|
|
|
13
|
8
|
|
|
8
|
|
50
|
use base 'Mail::DKIM::Canonicalization::dk_simple'; |
|
|
8
|
|
|
|
|
20
|
|
|
|
8
|
|
|
|
|
1570
|
|
|
14
|
8
|
|
|
8
|
|
62
|
use Carp; |
|
|
8
|
|
|
|
|
40
|
|
|
|
8
|
|
|
|
|
3553
|
|
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub canonicalize_header { |
|
17
|
94
|
|
|
94
|
0
|
167
|
my $self = shift; |
|
18
|
94
|
|
|
|
|
230
|
my ($line) = @_; |
|
19
|
|
|
|
|
|
|
|
|
20
|
94
|
|
|
|
|
630
|
$line =~ s/[ \t\015\012]//g; |
|
21
|
94
|
|
|
|
|
391
|
return $self->SUPER::canonicalize_header( $line . "\015\012" ); |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub canonicalize_body { |
|
25
|
30
|
|
|
30
|
0
|
59
|
my $self = shift; |
|
26
|
30
|
|
|
|
|
67
|
my ($multiline) = @_; |
|
27
|
|
|
|
|
|
|
|
|
28
|
30
|
|
|
|
|
409
|
$multiline =~ s/[ \t]//g; |
|
29
|
30
|
|
|
|
|
152
|
$multiline =~ s/\015(?!\012)//g; # standalone CR |
|
30
|
30
|
|
|
|
|
113
|
$multiline =~ s/([^\015])\012/$1/g; # standalone LF |
|
31
|
30
|
|
|
|
|
113
|
return $self->SUPER::canonicalize_body($multiline); |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |