Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5051 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14828 invoked by uid 1010); 28 Oct 2003 22:16:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14770 invoked from network); 28 Oct 2003 22:16:24 -0000 Received: from unknown (HELO stack.fission.org.uk) (195.82.120.217) by pb1.pair.com with SMTP; 28 Oct 2003 22:16:24 -0000 Received: from pulse.fission.org.uk ([82.68.51.93] helo=pulse) by stack.fission.org.uk with esmtp (Exim 3.36 #1 (Debian)) id 1AEc6F-0006eA-00 for ; Tue, 28 Oct 2003 22:14:03 +0000 Date: Tue, 28 Oct 2003 22:09:55 +0000 To: internals@lists.php.net Message-ID: <20031028220955.GA569@pulse.oxfordarch.enta.net> Mime-Version: 1.0 Content-Type: text/plain; Format=Flowed; DelSp=Yes; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer: Balsa 2.0.15 Lines: 24 Subject: header() behaviour From: gaz@fission.org.uk (Gareth Ardron) Apologies if this is the wrong list. I've just been running into some wierd issues regarding the header() function, which I'm not 100% sure if it's desired behaviour or not. Basically, we have a few variables such as: $var = "foo=1&bar=2"; Now this variable gets used in 2 cases. The first is as a direct link in an . The second is as an automatic redirect using header ("Location: blah"); This works great, but in an order to make this page fully html/xhtml compliant, we've been changing $var so that it's: $var = "foo=1&bar=2"; Now, for the first case - this works absolutly fine. For the second case however, header passes the full variable without resolving & to &. I can't figure out if this is desired or not, if it's not, I'll happily draft up a patch to alter the behaviour - I just want to make sure before I do. Cheers, -- Gareth Ardron