note 76481 added to function.parse-str

From: Date: Tue, 17 Jul 2007 16:04:52 +0000
Subject: note 76481 added to function.parse-str
Groups: php.notes 
Request: Send a blank email to php-notes+get-128663@lists.php.net to get a copy of this message
parse_str() is confused by ampersands (&) being encoded as HTML entities (&). This is relevant if you're extracting your query string from an HTML page (scraping). The solution is to run the string through html_entity_decode() before running it through parse_str(). (Editors: my original comment was a caution whose solution is obvious, but it has resulted in three replies ("so what?" "as intended" and "this is how to fix it"). Please remove the previous four posts dealing with this (69529, 70234, 72745, 74818) and leave just the above summary. This issue is too trivial to warrant the number of comments it has received.) ---- Server IP: 64.71.164.2 Probable Submitter: 65.106.184.148 ---- Manual Page -- http://www.php.net/manual/en/function.parse-str.php Edit -- https://master.php.net/note/edit/76481 Del: integrated -- https://master.php.net/note/delete/76481/integrated Del: useless -- https://master.php.net/note/delete/76481/useless Del: bad code -- https://master.php.net/note/delete/76481/bad+code Del: spam -- https://master.php.net/note/delete/76481/spam Del: non-english -- https://master.php.net/note/delete/76481/non-english Del: in docs -- https://master.php.net/note/delete/76481/in+docs Del: other reasons-- https://master.php.net/note/delete/76481 Reject -- https://master.php.net/note/reject/76481 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128663) next »