Jump to content

Sanitizing user Input (against XSS...)


TheFilmGod

Recommended Posts

Sanitizing user input is probably one of the most important things a web developer can do.

 

I am currently designing the function/class that will deal with user input. Is using htmlentities() enough? Or is there something else I need to keep in mind?

 

Also, if I use htmlentities() do I still need to use mysql_real_escape_string()?

 

EDIT: Sorry, wrong forum!

Link to comment
https://forums.phpfreaks.com/topic/192081-sanitizing-user-input-against-xss/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.