summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-04-28 15:34:56 +0200
committerBenny Baumann <BenBE@geshi.org>2013-04-28 15:34:56 +0200
commitc90e7eefc0940a66329ffd80925a107b81bcb823 (patch)
tree445af438022f2f22f1fa2408b0e9290b40427b3a /includes
parentbc2f82a4f88bc3839e99160b1ef0de231a347ef7 (diff)
parent473373dc3708a0f14a0eb569a9f2b07c3e14aaec (diff)
downloadcacert-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.sample3
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 != "")