summaryrefslogtreecommitdiff
path: root/includes/mysql.php.sample
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-07-16 23:19:26 +0200
committerMichael Tänzer <neo@nhng.de>2013-07-16 23:19:26 +0200
commitaea694d929d09db48b008eda40fc2a77ea086e8d (patch)
tree97261963287386ebbfb51152d9002c58c17bd5b2 /includes/mysql.php.sample
parent90dcf899dae9bff3dc9d7e7953e2841dadea178f (diff)
downloadcacert-aea694d929d09db48b008eda40fc2a77ea086e8d.tar.gz
cacert-aea694d929d09db48b008eda40fc2a77ea086e8d.tar.xz
cacert-aea694d929d09db48b008eda40fc2a77ea086e8d.zip
Source code taken from cacert-20130716.tar.bz2
Diffstat (limited to 'includes/mysql.php.sample')
-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 != "")