Hacker News new | ask | show | jobs
by derekchiang 4797 days ago
LOL don't be too serious this is just a cute silly app made in half an hour :P
2 comments

Not to worry, but sanitizing input literally takes no more than one additional function call (at least for php/ruby/python/perl/nodejs/java/c#/ocaml).

I can understand that this might be a hassle if you've written this app in COBOL, or some other word-heavy language. In which case, my most sincere condolences.

In fact I wrote this in Erlang :P
Pretty impressive, I didn't know Erlang was suitable for web programming. :-)

Nonetheless, you really should make sure that input is sanitized. XSS attacks are a nasty thing.

Sanitising input takes one extra function call (or it should, depending on your language of choice), which to write will take about five seconds…so in half an hour, you should be able to sanitise your input 360 times.