diff options
author | Benny Baumann <BenBE@geshi.org> | 2013-04-28 15:34:56 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2013-04-28 15:34:56 +0200 |
commit | c90e7eefc0940a66329ffd80925a107b81bcb823 (patch) | |
tree | 445af438022f2f22f1fa2408b0e9290b40427b3a /includes | |
parent | bc2f82a4f88bc3839e99160b1ef0de231a347ef7 (diff) | |
parent | 473373dc3708a0f14a0eb569a9f2b07c3e14aaec (diff) | |
download | cacert-devel-c90e7eefc0940a66329ffd80925a107b81bcb823.tar.gz cacert-devel-c90e7eefc0940a66329ffd80925a107b81bcb823.tar.xz cacert-devel-c90e7eefc0940a66329ffd80925a107b81bcb823.zip |
Merge branch 'bug-1171' into testserver-stable
Diffstat (limited to 'includes')
-rw-r--r-- | includes/mysql.php.sample | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/mysql.php.sample b/includes/mysql.php.sample index eb86401..10185fc 100644 --- a/includes/mysql.php.sample +++ b/includes/mysql.php.sample @@ -64,7 +64,8 @@ fputs($smtp, "DATA\r\n"); $InputBuffer = fgets($smtp, 1024); fputs($smtp, "X-Mailer: CAcert.org Website\r\n"); - fputs($smtp, "X-OriginatingIP: ".$_SERVER["REMOTE_ADDR"]."\r\n"); + if (array_key_exists("REMOTE_ADDR", $_SERVER)) + fputs($smtp, "X-OriginatingIP: ".$_SERVER["REMOTE_ADDR"]."\r\n"); fputs($smtp, "Sender: $errorsto\r\n"); fputs($smtp, "Errors-To: $errorsto\r\n"); if($replyto != "") |