Plugin Directory


Ignore:
Timestamp:
09/07/2015 06:46:19 AM (9 years ago)
Author:
arshidkv12
Message:

file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-limit-login-attempts/trunk/wp-limit-login-attempts.php

    r1231032 r1239492  
    77  Author URI: http://ciphercoin.com/
    88  Text Domain: wp-limit-login-attempts
    9   Version: 2.0.0
     9  Version: 2.0.1
    1010*/
    1111
     
    313313    function getip(){
    314314           if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
    315             $ip = $_SERVER['HTTP_CLIENT_IP'];
     315            $ip =mysqli_real_escape_string($_SERVER['HTTP_CLIENT_IP']);
    316316        } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
    317             $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
     317            $ip = mysqli_real_escape_string($_SERVER['HTTP_X_FORWARDED_FOR']);
    318318        } else {
    319319            $ip = $_SERVER['REMOTE_ADDR'];
Note: See TracChangeset for help on using the changeset viewer.