[opw-web] Properly pick up the X-Forwarded-For HTTP header



commit d22778b77753d8845a51a52f8722490d90099228
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Dec 3 00:01:22 2015 -0500

    Properly pick up the X-Forwarded-For HTTP header

 classes/class_core.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/classes/class_core.php b/classes/class_core.php
index a24689a..3fa0e77 100644
--- a/classes/class_core.php
+++ b/classes/class_core.php
@@ -141,7 +141,7 @@ class core
         $ips = '';
 
         if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
-            $ips .= $_SERVER['X_FORWARDED_FOR'];
+            $ips .= $_SERVER['HTTP_X_FORWARDED_FOR'];
 
         if (!$config->skip_proxy_ip && isset($_SERVER['REMOTE_ADDR'])) {
             if ($ips != '')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]