Issue Bug Closed

#16113Coding Error in t3lib_htmlmail.php function start()

old_markusd112 05/02/06, 18:45 updated 08/12/06, 14:16

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.