WhiteHouse / ndoch-hackathon

15 stars 14 forks source link

Data Sanitization #6

Open carldanley opened 11 years ago

carldanley commented 11 years ago

I ran into an interesting problem tonight with the signature data for petition ID: 50cac54dc988d4d27b00000b. You can view the data here: https://api.whitehouse.gov/v1/petitions/50cac54dc988d4d27b00000b/signatures.json?limit=1000&offset=0

This led me to reviewing other zip code entries and finding other pieces of unsanitized data. I am proposing that you enforce sanitization on API entries, especially the zip code field.

screen shot 2013-05-08 at 9 06 04 pm

carldanley commented 11 years ago

Also, they need to be validated against US zip codes as well. I see various 6 digit zip codes, etc.