Project

General

Profile

Actions

Bug #16113

closed

Coding Error in t3lib_htmlmail.php function start()

Added by old_markusd112 about 18 years ago. Updated almost 18 years ago.

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

uname.diff (2.8 KB) uname.diff Administrator Admin, 2006-05-08 21:29

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16081: Wrong parameter count for php_uname() reported by using the htmlmail function with PHP 4.2.2ClosedMartin Kutschker2006-04-24

Actions
Actions

Also available in: Atom PDF