Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Related Rants
I had to solve some issues regarding comments on a Wordpress site.
I noticed some interesting code that an old developer had left behind.
It was an array of swearwords, and an if statement that checked if words in a comment existed in that array of swear words.
It was written in Javascript, everyone; including the customer could see the array of nasty words...
undefined
swear
swearwords
js
javascript
wordpress
php