Actions
Bug #16113
closedCoding Error in t3lib_htmlmail.php function start()
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-05-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
There seems to be a = obsolete in line 273:
function start () {
global $TYPO3_CONF_VARS;
// Sets the message id
$host = php_uname('n');
if (strpos('.',$host) === FALSE) {
There's another problem here too: in my environment the variable $host contains the string: "Linux infong 2.4 #1 SMP Wed Jan 18 14:53:29 CET 2006 i686 unknown".
In line 273 is tested, if $host contains a dot "." If so, you expect that it contains an IP-adress, but it's not necessarily.
The result is an warning message that is displayed after the "Submit" button of the typo3 mail form is pressed:
Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in [Webserver-path to the typo3-Installation]/t3lib/class.t3lib_htmlmail.php on line 274
I'm using typo3 on a shared webserver of a big hosting provider (1&1, United Internet)
(issue imported from #M3392)
Files
Actions