StartupAPI / users

:zap: User management tool to be used in on-line projects. Includes admin dashboard.
http://www.StartupAPI.com/
MIT License
60 stars 24 forks source link

Fail API gracefully on json_encode errors #248

Open sergeychernyshev opened 8 years ago

sergeychernyshev commented 8 years ago

If json_encode fails when API endpoint is called (e.g. UTF8 problem), fail gracefully using json_last_error() and json_last_error_msg() - check if they are available in PHP version used.

To reproduce, pass a parameter that decodes to invalid UTF8 string.