note 117656 added to function.http-build-query
| From: | james at dimensionengineering dot com | Date: | Wed, 15 Jul 2015 23:04:19 +0000 |
| Subject: | note 117656 added to function.http-build-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203116@lists.php.net to get a copy of this message | ||
Be careful about Example 1 -- it is exactly how *not* to implement things.
& as a separator is the URL encoding.
& is HTML encoding.
You should HTML encode your URL if embedding it in a web page. This is more involved than just
replacing & with &. Doing as this example suggests is a security hole waiting to happen.
----
Server IP: 72.52.91.14
Probable Submitter: 76.188.201.246
----
Manual Page -- http://php.net/manual/en/function.http-build-query.php
Edit -- https://master.php.net/note/edit/117656
Del: integrated -- https://master.php.net/note/delete/117656/integrated
Del: useless -- https://master.php.net/note/delete/117656/useless
Del: bad code -- https://master.php.net/note/delete/117656/bad+code
Del: spam -- https://master.php.net/note/delete/117656/spam
Del: non-english -- https://master.php.net/note/delete/117656/non-english
Del: in docs -- https://master.php.net/note/delete/117656/in+docs
Del: other reasons-- https://master.php.net/note/delete/117656
Reject -- https://master.php.net/note/reject/117656
Search -- https://master.php.net/manage/user-notes.php