gridonic / hapi

PHP Wrapper Library for the Harvest API
GNU General Public License v3.0
41 stars 21 forks source link

XML special characters in client/projects names are not encoded #4

Closed ryanotella closed 10 years ago

ryanotella commented 10 years ago

Currently, the API doesn't encode values containing XML special characters.

Given these values are always likely to be plain-text, it would seem to be useful to automatically escape these values. Or provide an option in the default setup in the documentation. There doesn't seem to be a down-side, and I imagine this would be the expected behaviour and currently it can generate hard to track down bugs (400 Bad Request errors).