Opened 19 years ago

Closed 19 years ago

#354 closed defect (wontfix)

mythweb should attempt to use $_SERVER['SERVER_ADMIN'] before attempting to figure out it's own email address

Reported by: Rob Smith Owned by: xris
Priority: minor Milestone: unknown
Component: mythweb Version:
Severity: low Keywords:
Cc: Ticket locked: no

Description

I'd recommend changing line 33 in file config/conf.php from: define('error_email', 'mythweb_errors@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/', '$1', server_domain));

to

define('error_email', _or( $_SERVERSERVER_ADMIN?,'mythweb_errors@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/', '$1', server_domain)));

and including includes/utils.php before the conf.php.

This would work out better for more people imho.

Change History (1)

comment:1 Changed 19 years ago by xris

Resolution: wontfix
Status: newclosed

It's in a config file. Put it there yourself. Personally, I like my php errors to go to a different address than the default server administrator.

Note: See TracTickets for help on using tickets.