|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-18 15:13 UTC] techtonik@php.net
Description: ------------ My christmas wishlist doesn't work - it inserts these &s; in URL and I can't get rid of them. =( http://pear.php.net/wishlist.php/techtonik PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 05:00:01 2025 UTC |
account-edit.php seems to quote the posted values before inserting into the database and wishlist.php outputs the quoted uri directly using header("Location: $url"); The result is that the browser is redirected to an uri where every & is quoted to & A solution could be to use unhtmlentities() from http://www.php.net/htmlspecialchars in wishlist.php before the call to header('Location: ..') Using http://pecl.php.net/wishlist.php/mikl Expected http://www.amazon.com/gp/registry/wishlist/3QP28R224S50N/103-4864265-6791821?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=13&y=12 Actual http://www.amazon.com/gp/registry/wishlist/3QP28R224S50N/103-4864265-6791821?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=13&y=12