0xjessel / calchat

CalChat is a web app that hosts chatrooms for every class and building on campus with the goal of connecting the cal campus community. By logging in with Facebook, students can talk to fellow students in the same building or class, make friends, find study partners, and stay in the loop.
calchat.net
3 stars 0 forks source link

use node-validator's strip() method #55

Closed 0xjessel closed 12 years ago

0xjessel commented 12 years ago

I added node-validator, a module to validate and sanitize text in 564da2e4df8322c2a9e43768b635e12d1927260e

Check out the github page to see the methods you can do. One thing I see that you can use is sanitize(room).trim() for index.js:77 instead of your custom function strip()

Replace any other custom sanitize/validation functions with node-validator's if you find em.