Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
39ac4a2f
Commit
39ac4a2f
authored
Sep 05, 2016
by
Giovannoni Laurent
Browse files
FEAT #4543 php7 ready
parent
0867fca7
Changes
2
Hide whitespace changes
Inline
Side-by-side
maarch_entreprise/trunk/tools/mails/RFC822.php
View file @
39ac4a2f
...
...
@@ -105,7 +105,7 @@ class Mail_RFC822
*
* @return object Mail_RFC822 A new Mail_RFC822 object.
*/
function
Mail_RFC822
(
$address
=
null
,
$default_domain
=
null
,
$nest_groups
=
null
,
$validate
=
null
,
$limit
=
null
)
public
function
__construct
(
$address
=
null
,
$default_domain
=
null
,
$nest_groups
=
null
,
$validate
=
null
,
$limit
=
null
)
{
if
(
isset
(
$address
))
$this
->
address
=
$address
;
if
(
isset
(
$default_domain
))
$this
->
default_domain
=
$default_domain
;
...
...
maarch_entreprise/trunk/tools/mails/htmlMimeMail.php
View file @
39ac4a2f
...
...
@@ -682,7 +682,7 @@ class htmlMimeMail
{
preg_match_all
(
'/(\s?\w*[\x80-\xFF]+\w*\s?)/'
,
$input
,
$matches
);
foreach
(
$matches
[
1
]
as
$value
)
{
$replacement
=
preg_replace
(
'/([\x20\x80-\xFF])/e'
,
'"=" . strtoupper(dechex(ord("\1")))'
,
$value
);
$replacement
=
@
preg_replace
(
'/([\x20\x80-\xFF])/e'
,
'"=" . strtoupper(dechex(ord("\1")))'
,
$value
);
$input
=
str_replace
(
$value
,
'=?'
.
$charset
.
'?Q?'
.
$replacement
.
'?='
,
$input
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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