From 44857e2f23c079e3123361511e6f8586a18c973d Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 7 Nov 2005 09:35:54 +0000 Subject: [PATCH] Fixes #1443 git-svn-id: http://svn.automattic.com/wordpress/trunk@3007 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/vars.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-includes/vars.php b/wp-includes/vars.php index 96031a2911..f61b9692fa 100644 --- a/wp-includes/vars.php +++ b/wp-includes/vars.php @@ -37,6 +37,11 @@ $is_IE = (($is_macIE) || ($is_winIE)); $is_apache = ( strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') || strstr($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') ) ? 1 : 0; $is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0; +// On OS X Server, $_SERVER['REMOTE_ADDR'] is the server's address. Workaround this +// by using $_SERVER['HTTP_PC_REMOTE_ADDR'], which *is* the remote address. +if ( isset($_SERVER['HTTP_PC_REMOTE_ADDR']) ) + $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_PC_REMOTE_ADDR']; + // if the config file does not provide the smilies array, let's define it here if (!isset($wpsmiliestrans)) { $wpsmiliestrans = array(