Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
7e9cad7a
Commit
7e9cad7a
authored
11 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Plain Diff
Merge pull request #549 from splitbrain/mailreplyto
add Reply-To and Sender to apply cleanAddress
parents
221cb665
8c253612
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/Mailer.class.php
+7
-7
7 additions, 7 deletions
inc/Mailer.class.php
with
7 additions
and
7 deletions
inc/Mailer.class.php
+
7
−
7
View file @
7e9cad7a
...
...
@@ -277,7 +277,7 @@ class Mailer {
/**
* Add the To: recipients
*
* @see
set
Address
* @see
clean
Address
* @param string|array $address Multiple adresses separated by commas or as array
*/
public
function
to
(
$address
)
{
...
...
@@ -287,7 +287,7 @@ class Mailer {
/**
* Add the Cc: recipients
*
* @see
set
Address
* @see
clean
Address
* @param string|array $address Multiple adresses separated by commas or as array
*/
public
function
cc
(
$address
)
{
...
...
@@ -297,7 +297,7 @@ class Mailer {
/**
* Add the Bcc: recipients
*
* @see
set
Address
* @see
clean
Address
* @param string|array $address Multiple adresses separated by commas or as array
*/
public
function
bcc
(
$address
)
{
...
...
@@ -310,7 +310,7 @@ class Mailer {
* This is set to $conf['mailfrom'] when not specified so you shouldn't need
* to call this function
*
* @see
set
Address
* @see
clean
Address
* @param string $address from address
*/
public
function
from
(
$address
)
{
...
...
@@ -333,9 +333,9 @@ class Mailer {
* for headers. Addresses may not contain Non-ASCII data!
*
* Example:
*
setAddress
("föö <foo@bar.com>, me@somewhere.com","TBcc");
*
cc
("föö <foo@bar.com>, me@somewhere.com","TBcc");
*
* @param string|array $address Multiple adresses separated by commas or as array
* @param string|array $address
es
Multiple adresses separated by commas or as array
* @return bool|string the prepared header (can contain multiple lines)
*/
public
function
cleanAddress
(
$addresses
)
{
...
...
@@ -522,7 +522,7 @@ class Mailer {
// clean up addresses
if
(
empty
(
$this
->
headers
[
'From'
]))
$this
->
from
(
$conf
[
'mailfrom'
]);
$addrs
=
array
(
'To'
,
'From'
,
'Cc'
,
'Bcc'
);
$addrs
=
array
(
'To'
,
'From'
,
'Cc'
,
'Bcc'
,
'Reply-To'
,
'Sender'
);
foreach
(
$addrs
as
$addr
)
{
if
(
isset
(
$this
->
headers
[
$addr
]))
{
$this
->
headers
[
$addr
]
=
$this
->
cleanAddress
(
$this
->
headers
[
$addr
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment