Secure site ?

Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31
  1. #26
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Secure site ?

    Quote Originally Posted by Rotana View Post
    The $banlist is very restricting, linking to a problem I referenced earlier in this thread, and the other portion is already used in this thread.

    "a look"?

  2. #27
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: Secure site ?

    Quote Originally Posted by Rotana View Post
    That's almost the same as gWX0 posted.

  3. #28
    Just Me iceman4154 is offline
    MemberRank
    Oct 2007 Join Date
    Columbus, OhioLocation
    217Posts

    Re: Secure site ?

    I use this one.
    PHP Code:
    function antisql($sql)
    {
      
    $sql htmlspecialchars($sql);
      
    $sql str_replace("'"'& #039;'$sql);
      
    $sql str_replace('"''&quote;'$sql);

      return 
    $sql;

    ~Iceman

  4. #29
    Valued Member Alkyron is offline
    MemberRank
    Jun 2007 Join Date
    100Posts

    Re: Secure site ?

    Quote Originally Posted by iceman4154 View Post
    I use this one.
    PHP Code:
    function antisql($sql)
    {
      
    $sql htmlspecialchars($sql);
      
    $sql str_replace("'"'& #039;'$sql);
      
    $sql str_replace('"''&quote;'$sql);

      return 
    $sql;

    ~Iceman
    Its works ?

  5. #30
    Apprentice Jackbush is offline
    MemberRank
    May 2009 Join Date
    21Posts

    Re: Secure site ?

    Don't forget to include the sanitize_data function in whatever script is calling it!

  6. #31
    Member Zephyr is offline
    MemberRank
    Jun 2008 Join Date
    FinlandLocation
    63Posts

    Re: Secure site ?

    Quote Originally Posted by Wizkidje View Post
    That one clearly sucks. It blocks any slash, dot, comma, and so forth. Just clean ', " and \.
    i don't know why the user even should be allowed slash, dot or comma...
    a-z A-Z 0-9 - and _ should be enough for most of us...

    also if you do it on "exclude" list then be sure to get rid of lineswitches also :p although i'm pretty sure that's not something that you usually get from inputfield lol...



Page 2 of 2 FirstFirst 12

Advertisement