[PR][web-php][#53][master] - Add json_encode()ded endpoint to PHP releases list + content type adjustments
| From: | noreply@php.net | Date: | Mon, 06 Apr 2015 15:30:09 +0000 |
| Subject: | [PR][web-php][#53][master] - Add json_encode()ded endpoint to PHP releases list + content type adjustments | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21023@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/web-php/pull/53
Warning: according to github, the Pull Request cannot be merged without manual conflict resolution!
Pull Request Description:
We usually warn PHP users to avoid unserialize remote or untrusted data but at the same time php.net
only offers a serialized endpoint for PHP releases. This commit:
- adds a JSON endpoint that can be an option to avoid the serialized endpoint
- sets a proper Content-Type response header for both serialized -
text/plain - and
json - application/json - endpoints
- simplifies URLs exchanging &serialize=1 and &json=1 for
&serialize and &json respectively
Cheers!