note 27456 added to about.notes
| From: | mike at islesofscilly-travel dot co dot uk | Date: | Fri, 06 Dec 2002 14:29:44 +0000 |
| Subject: | note 27456 added to about.notes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40420@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!
--
http://www.php.net/manual/en/about.notes.php
http://master.php.net/manage/user-notes.php?action=edit+27456
http://master.php.net/manage/user-notes.php?action=delete+27456
http://master.php.net/manage/user-notes.php?action=reject+27456