ASCII Data Sanitation

Discussion in 'Programming' started by sp0om, Sep 15, 2009.

  1. #1
    Hello guys,

    I'm building a function to sanitize text before putting it into a database, and thought maybe converting all potentially harmful characters into ASCII would be a good way to keep the bad out.

    Do you guys have any thoughts on this approach? I can't find any resources about it online, even though it seems like a sound idea...
     
    sp0om, Sep 15, 2009 IP
  2. pneulameiro

    pneulameiro Peon

    Messages:
    440
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There exists lots of sanitization functions in php for example available on the web. I think that in the site www.php.org you can get some of them.
     
    pneulameiro, Sep 15, 2009 IP