South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
htmlentities() is probably a better choice than htmlspecialchars(). It escapes all html content rather than just a few characters like htmlspecialchars().slimothy said:php has functions to handle that already, they could do $string = html_special_chars($string); or they could do $string = str_replace('<', '', $string);
oh, gosh, thanks.Karnaugh said:If you coded them like a retard, yeah.
Specifics of the loopholes?If you coded them like a retard, yeah.
No, unless the name is the same everytime. How else would ppl like me, working through a corporate firewall, sending out a single IP address to the world, be able to sign, along with all my colleagues?lewstherin said:Darren_M. I've just tested this so its definitely a bug. The petition currently allows me to put as many names as I want from the same IP address.
Surely this kind of ability should be blocked?
ettubrute said:Specifics of the loopholes?
...
No, unless the name is the same everytime. How else would ppl like me, working through a corporate firewall, sending out a single IP address to the world, be able to sign, along with all my colleagues?
pookfuzz said:I expect the list will be pruned of obviously bogus entries and that’s about the best we can hope for.
slimothy said:darren I assume you're from imaginet and I know you're going to lock down the code now but if I may make a tiny suggestion... set a cookie on the users machien and store the IP in the database and use a timestamp associated with the IP as well as the cookie to prevent multiple signing because it holds little credibility if anyone can just make up a hundred names and sign the petition.
Also regexp is your friend