Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: SQL Injections

  1. #11
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    I can't edit but I have a question.

    Would I be best to use this if I didn't want html, sql injections, javascript etc? I'll be making BBcode for html, so no redirects etc...

    PHP Code:
    <?
    function clean($str)
    {
    $cl strip_tags(addslashes(stripslashes(htmlspecialchars($str))));
    return 
    $cl;
    ?>

  2. #12
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Don't bother with addslashes, stripslashes will work by itself fine. But apart from that, looks good.

  3. #13
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    A relvent comic:


  4. #14
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    ROFL. @ above.
    Coming and going...
    Highers are getting the better of me

  5. #15
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by 01101101entor View Post
    A relvent comic:

    Aha, thanks for posting that. +rep

  6. #16
    Join Date
    Nov 2007
    Posts
    660
    Tokens
    0

    Default

    Hahah, very good!

  7. #17
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    I saw this during SOSE in the computer lab. I started laughing, and everyone looked at me weirdly

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •