Last modified: 2010-05-15 15:38:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4105, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2105 - Any mediawiki mail functions are potentially blocked by missing "space"in php mail() call in UserMailer::userMailer()
Any mediawiki mail functions are potentially blocked by missing "space"in php...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.5.x
All All
: Highest critical with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.php.net/manual/en/function...
:
Depends on:
Blocks: 454 2014
  Show dependency treegraph
 
Reported: 2005-05-08 05:56 UTC by T. Gries
Modified: 2010-05-15 15:38 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2005-05-08 05:56:17 UTC
Any mail function within MediaWiki (mail a new password, email user, confirm
email, ENotif) is potentially(*) broken in a certain php version [1] due to a
missing space. This has been reported by a user.

Fix by adding an additional space after the "-f" option letter.

Example 3 in [2], which was used when implementing this in UserMailer.php, does
not show the space, but it helped to get a touchy php mail() implementation running.

Therefore I suggest to change line 132 in UserMailer.php from
 mail( wfQuotedPrintable_name_and_emailaddr($to), $subject, $body, $headers,
"-f{$wgEmergencyContact}\n");
to
 mail( wfQuotedPrintable_name_and_emailaddr($to), $subject, $body, $headers, "-f
{$wgEmergencyContact}\n");

[1] PHP: 4.3.10 (apache)
[2] http://www.php.net/manual/en/function.mail.php
Comment 1 Anders Wegge Jakobsen 2005-05-22 08:32:47 UTC
Not a PHP problem, but a problem with some implementations of the sendmail
executable. Fixed in HEAD.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links