Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

SQL inject

kaoskaos New
edited December 2009 in Vanilla 2.0 - 2.8
Does anyone know how to stop sql injections as i am creating a site from scratch and i need a safe way of stopping the injections can anyone please help me cheers

Comments

  • LincLinc Admin
    edited December 2009
    The first short-term band-aid I'd recommend is passing any text through mysql_real_escape_string() before putting it in a query. I recommend Googling PHP security and get reading; this isn't really a topic that you can cover in a forum post.

    Is this a Vanilla-related site or a custom site you've made?
  • Custom site and thx :D
Sign In or Register to comment.