nextcloud/lib/public/appframework/http
Lukas Reschke 62e3de1bdb Check if response could get generated
`json_encode` fails hard on PHP >= 5.5 if a non UTF-8 value is specified by returning false. Older PHP versions just nullify the value which makes it at least somewhat usable.

This leads to very confusing errors which are very hard to debug since developers are usually not aware of this. In this case I'd consider throwing a fatal exception – since it arguably is an error situation – is a fair solution since this makes developers and administrators aware of any occurence of the problem so that these bugs can get fixed.

Fixes https://github.com/owncloud/core/issues/17265
2015-07-02 11:42:51 +02:00
..
contentsecuritypolicy.php Add support for disallowing domains to the ContentSecurityPolicy 2015-05-20 11:44:37 +02:00
datadisplayresponse.php update license headers and authors 2015-06-25 14:13:49 +02:00
datadownloadresponse.php Add @since tags to all methods in public namespace 2015-04-16 17:00:08 +02:00
dataresponse.php Add @since tags to all methods in public namespace 2015-04-16 17:00:08 +02:00
downloadresponse.php Add @since tags to all methods in public namespace 2015-04-16 17:00:08 +02:00
icallbackresponse.php update license headers and authors 2015-06-25 14:13:49 +02:00
ioutput.php update license headers and authors 2015-06-25 14:13:49 +02:00
jsonresponse.php Check if response could get generated 2015-07-02 11:42:51 +02:00
notfoundresponse.php update license headers and authors 2015-06-25 14:13:49 +02:00
ocsresponse.php Merge pull request #15679 from owncloud/fix-private-member-access 2015-04-17 09:13:54 +02:00
redirectresponse.php Add @since tags to all methods in public namespace 2015-04-16 17:00:08 +02:00
response.php Add `no-store` to AppFramework 2015-06-15 18:35:41 +02:00
streamresponse.php update license headers and authors 2015-06-25 14:13:49 +02:00
templateresponse.php Add @since tags to all methods in public namespace 2015-04-16 17:00:08 +02:00