note 27456 deleted from about.notes by victor

From: Date: Sat, 01 Mar 2003 13:39:24 +0000
Subject: note 27456 deleted from about.notes by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44693@lists.php.net to get a copy of this message
The redirectTo function presented by chamele0nDOT1ATemailDOTcom (17-Apr-2002 06:10) fails if the original URL contained characters that were urlencoded, as the $_SERVER variables undo the encoding. To fix this, just add the following line $newUrl = urlencode($newUrl); before the header() call. Note also that you need output buffering enabled for this function to work anywhere within your script!

« previous php.notes (#44693) next »