note 62739 added to function.http-build-query

From: Date: Wed, 08 Mar 2006 15:11:38 +0000
Subject: note 62739 added to function.http-build-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-105054@lists.php.net to get a copy of this message
I am concerned about this function's generation of [ and ] in the variable names. From what I can gather from http://www.faqs.org/rfcs/rfc3986.html (which I believe to be the most recent RFC on the matter), the use of square brackets is illegal here. To be sure, always use the following: str_replace(array('[',']'), array('%5B','%5D'), http_build_query($data)); I will also submit a bug, but thought it important to inform users. ---- Server IP: 84.18.202.180 Probable Submitter: 84.9.255.116 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.http-build-query.php Edit -- http://master.php.net/note/edit/62739 Del: integrated -- http://master.php.net/note/delete/62739/integrated Del: useless -- http://master.php.net/note/delete/62739/useless Del: bad code -- http://master.php.net/note/delete/62739/bad+code Del: spam -- http://master.php.net/note/delete/62739/spam Del: non-english -- http://master.php.net/note/delete/62739/non-english Del: in docs -- http://master.php.net/note/delete/62739/in+docs Del: other reasons-- http://master.php.net/note/delete/62739 Reject -- http://master.php.net/note/reject/62739 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105054) next »