From e3f06ee220cd33beca20aa7c0ab64ed9ae08bf79 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 10 Jan 2012 10:51:36 -0500 Subject: [PATCH 1/2] Use X-Client header for IP for load-balancers --- plugins/RegisterThrottle/RegisterThrottlePlugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/RegisterThrottle/RegisterThrottlePlugin.php b/plugins/RegisterThrottle/RegisterThrottlePlugin.php index 7ad7809bac..1e686bd62b 100644 --- a/plugins/RegisterThrottle/RegisterThrottlePlugin.php +++ b/plugins/RegisterThrottle/RegisterThrottlePlugin.php @@ -223,6 +223,7 @@ class RegisterThrottlePlugin extends Plugin private function _getIpAddress() { $keys = array('HTTP_X_FORWARDED_FOR', + 'HTTP_X_CLIENT', 'CLIENT-IP', 'REMOTE_ADDR'); From 98acec74f5c19050163c9233588a6fb46bd0c52d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 20 Jan 2012 10:34:59 -0500 Subject: [PATCH 2/2] rel=me for homepage in profile block --- lib/profileblock.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/profileblock.php b/lib/profileblock.php index 1162b78422..eb19a1a9aa 100644 --- a/lib/profileblock.php +++ b/lib/profileblock.php @@ -127,6 +127,7 @@ abstract class ProfileBlock extends Widget if (!empty($homepage)) { $this->out->element('a', array('href' => $homepage, + 'rel' => 'me', 'class' => 'profile_block_homepage'), $homepage); }