note 91855 added to function.urlencode
| From: | daniel+php at danielnorton dot com | Date: | Mon, 29 Jun 2009 14:24:10 +0000 |
| Subject: | note 91855 added to function.urlencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157666@lists.php.net to get a copy of this message | ||
Don't use urlencode() or urldecode() if the text includes an email address, as it destroys the
"+" character, a perfectly valid email address character.
Unless you're certain that you won't be encoding email addresses AND you need the
readability provided by the non-standard "+" usage, instead always use use rawurlencode()
or rawurldecode().
----
Server IP: 64.71.164.2
Probable Submitter: 70.114.204.95
----
Manual Page -- http://www.php.net/manual/en/function.urlencode.php
Edit -- https://master.php.net/note/edit/91855
Del: integrated -- https://master.php.net/note/delete/91855/integrated
Del: useless -- https://master.php.net/note/delete/91855/useless
Del: bad code -- https://master.php.net/note/delete/91855/bad+code
Del: spam -- https://master.php.net/note/delete/91855/spam
Del: non-english -- https://master.php.net/note/delete/91855/non-english
Del: in docs -- https://master.php.net/note/delete/91855/in+docs
Del: other reasons-- https://master.php.net/note/delete/91855
Reject -- https://master.php.net/note/reject/91855
Search -- https://master.php.net/manage/user-notes.php