[bugs] [Bug 1252] Changed - ipv6 and X-Originating-IP

bugs at bugs.horde.org bugs at bugs.horde.org
Thu May 29 14:13:47 PDT 2003


http://bugs.horde.org/show_bug.cgi?id=1252

*** shadow/1252	Tue May 20 05:49:49 2003
--- shadow/1252.tmp.23861	Thu May 29 18:13:46 2003
***************
*** 3,9 ****
  Version: 2.2 Stable
  Platform: All Browsers
  OS/Version: All
! Status: CLOSED   
  Resolution: INVALID
  Severity: minor
  Priority: P2
--- 3,9 ----
  Version: 2.2 Stable
  Platform: All Browsers
  OS/Version: All
! Status: REOPENED   
  Resolution: INVALID
  Severity: minor
  Priority: P2
***************
*** 37,39 ****
--- 37,56 ----
  stock version as distributed in config/header.txt.dist it uses the value of
  $_SERVER['REMOTE_ADDR'] for this header field.
  If this has an incorrect value, it's your webserver's or PHP's fault, not IMP's.
+ 
+ ------- Additional Comments From tpeland at tkukoulu.fi  05/29/03 18:13 -------
+ Nope. It is IMP's fault and here is the fix for IMP 3.2.1.
+ It seems to be a more general error handling multiple ':' characters in
+ config/header.txt.
+ 
+ --- imp/lib/IMP.php.ORIG        2003-02-13 01:08:32.000000000 +0200
+ +++ imp/lib/IMP.php     2003-05-29 23:57:19.000000000 +0300
+ @@ -1091,7 +1091,7 @@
+              foreach ($lines as $line) {
+                  $line = Text::expandEnvironment($line);
+                  if (!empty($line)) {
+ -                    list($key, $val) = explode(':', $line);
+ +                    list($key, $val) = explode(':', $line, 2);
+                      $headers[$key] = trim($val);
+                  }
+              }


More information about the bugs mailing list