Limenius / ReactRenderer

Client and Server-side React rendering from PHP
MIT License
237 stars 37 forks source link

handle json encode/decode problems with checking on last error #29

Closed taxaos closed 5 years ago

taxaos commented 5 years ago

With a broken umlaut supplied as props in React, it is possible that the json_encode on PHP site fails. These broken props (false) were send to V8JS and let to an V8JSException.

This patch checks now the json_encode/decode operations for last error and raises Exceptions if needed.

gempir commented 5 years ago

@nacmartin can you take a look at this?

nacmartin commented 5 years ago

thanks @taxaos