Wednesday, October 9, 2013

Dont use data coming from external source as your identifiers

<div id="{value-from-external-system}"></div>

Dont use the values like this, this might break the code if the value contains certain sspecial chars. Remove all special chars and keep the alphanumeric chars alone.

Same holds good for storage as well, if you have to use the data coming form external system or user as the identifier or key, be very careful.

No comments:

Post a Comment