JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

Fix binary js injection #54

Closed shaine closed 11 years ago

shaine commented 11 years ago

Added a static function isBinaryRequest() to test the Content-Transfer-Encoding header for the value 'binary' before injecting the JS snippet to prevent image PHP-generated images from getting corrupted.

Fixes #53