Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
18bd4e0d
Unverified
Commit
18bd4e0d
authored
Apr 02, 2021
by
IKEDA Soji
Committed by
GitHub
Apr 02, 2021
Browse files
Merge pull request #1135 from ikedas/issue-1113 by ikedas
X-Original-DMARC-Record header field may break message (#1113)
parents
a95b7c95
a55e3eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Message.pm
View file @
18bd4e0d
...
...
@@ -3421,7 +3421,13 @@ sub _check_dmarc_rr {
# Note: txtdata() of Net::DNS::RR::TXT >=0.69 returns array of
# text fragments in array context. Take care to get values in
# scalar context.
my
$rrstr
=
$_
->
txtdata
if
$_
->
type
eq
'
TXT
';
# Additionally, it returns Unicode value ("utf8 flag" on).
my
$rrstr
;
if
(
$_
->
type
eq
'
TXT
')
{
$rrstr
=
$_
->
txtdata
;
$rrstr
=
Encode::
encode_utf8
(
$rrstr
)
if
Encode::
is_utf8
(
$rrstr
);
}
$rrstr
;
}
$packet
->
answer
;
last
if
$rrstr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment