a bug with $HTTP_SERVER_VARS when adding address to addressbook from message.php?

Atif Ghaffar aghaffar@developer.ch
Tue, 10 Apr 2001 03:46:38 +0200


Hi.

I am seeing this strange behaviour.
when reading message, I can click on the add contact to addressbook icon
and it is added in Turba
if
$conf['problems']['email'] = 'root@'.$HTTP_SERVER_VARS['SERVER_NAME']
in horde/config/horde.php is commented.

If it is uncommented, I get the error.
-----------------------------------
Warning: Undefined variable: HTTP_SERVER_VARS in
/u1/usr/apache/htdocs/horde/config/horde.php on line 121

Warning: Cannot add header information - headers already sent by (output
started at /u1/usr/apache/htdocs/horde/config/horde.php:121) in
/u1/usr/apache/htdocs/horde/lib/Lang.php on line 62
...
...
...
-----------------------------------

Any1 has an  idea about how to fix this? I have checked with a small
script to see if I have access to $HTTP_SERVER_VARS.


thanks



-- 
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-------------------------.
        +41 21 351 53 60 ¦ voice
        +41 78 787 51 45 ¦ mobile
        +41 86 0796598972¦ fax
    http://www.4unet.net ¦ www
http://atif.developer.ch ¦ homepage
  atif.ghaffar@4unet.net ¦ email


>From max@the Date: Mon,  9 Apr 2001 19:06:21 -0700
Return-Path: <max@the-triumvirate.net>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 56585 invoked from network); 10 Apr 2001 02:06:34 -0000
Received: from cx439309-b.santab1.ca.home.com (HELO zion.the-triumvirate.net) (65.5.157.46)
  by horde.org with SMTP; 10 Apr 2001 02:06:34 -0000
Received: (from http@localhost)
	by zion.the-triumvirate.net (8.10.2/8.10.2) id f3A26LD08651
	for imp@lists.horde.org; Mon, 9 Apr 2001 19:06:21 -0700
X-Authentication-Warning: zion.the-triumvirate.net: http set sender to max@the-triumvirate.net using -f
Received: from 65.5.157.45 ( [65.5.157.45])
	as user max@imap.the-triumvirate.net by www.the-triumvirate.net with HTTP;
	Mon,  9 Apr 2001 19:06:21 -0700
Message-ID: <986868381.3ad26a9da605f@www.the-triumvirate.net>
Date: Mon,  9 Apr 2001 19:06:21 -0700
From: Max Kalika <max@the-triumvirate.net>
To: imp@lists.horde.org
References: <3AD265FE.AE3A2400@developer.ch>
In-Reply-To: <3AD265FE.AE3A2400@developer.ch>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 65.5.157.45
Subject: Re: [imp] a bug with $HTTP_SERVER_VARS when adding address to addressbook from  message.php?

Quoting Atif Ghaffar <aghaffar@developer.ch>:

> when reading message, I can click on the add contact to addressbook icon
> and it is added in Turba if

> $conf['problems']['email'] = 'root@'.$HTTP_SERVER_VARS['SERVER_NAME']
> in horde/config/horde.php is commented.

Check the latest horde/config/horde.php.dist.  I fixed this a couple weeks back.

-- 
/// max kalika
// max@the-triumvirate.net

"and after a while you'll stop making computers out of stuff and start making 
stuff out of computers" -- douglas adams 4/5/01