note 63227 deleted from function.urldecode by betz
| From: | betz@php.net | Date: | Thu, 16 Mar 2006 16:16:12 +0000 |
| Subject: | note 63227 deleted from function.urldecode by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-105934@lists.php.net to get a copy of this message | ||
Note Submitter: blue-wildebeest.blogspot.com
----
Don't fix the bad data submitted by the Javascript escape(), rather use encodeURIComponent()
instead. That way, the POST or GET variable will be correct in PHP.
http://blue-wildebeest.blogspot.com/2006/03/you-cannot-escape.html