Plugin Directory

Changeset 2523765


Ignore:
Timestamp:
04/29/2021 10:02:22 PM (5 years ago)
Author:
fakhris
Message:

Bug fixed

Location:
seo-redirection/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • seo-redirection/trunk/common/util.php

    r2516992 r2523765  
    310310        }
    311311               
    312         return $this->sanitize_req($qry,"url");
     312        return strip_tags($this->sanitize_req($qry,"url"));
    313313    }else
    314314    {
     
    493493}
    494494
    495 //----------------------------------------------------
    496 
    497 public function get_visitor_country()
    498 {
    499     $client  = @$_SERVER['HTTP_CLIENT_IP'];
    500     $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
    501     $remote  = $_SERVER['REMOTE_ADDR'];
    502     $result  = "Unknown";
    503     if(filter_var($client, FILTER_VALIDATE_IP))
    504     {
    505         $ip = $client;
    506     }
    507     elseif(filter_var($forward, FILTER_VALIDATE_IP))
    508     {
    509         $ip = $forward;
    510     }
    511     else
    512     {
    513         $ip = $remote;
    514     }
    515 
    516     $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip));
    517 
    518     if($ip_data && $ip_data->geoplugin_countryName != null)
    519     {
    520         $result = $ip_data->geoplugin_countryName;
    521     }
    522 
    523     return $result;
    524 }
    525495
    526496//----------------------------------------------------
  • seo-redirection/trunk/readme.txt

    r2516992 r2523765  
    55Requires at least: 4.1
    66Tested up to: 5.7.1
    7 Stable tag: trunk
     7Stable tag: 6.4
    88
    99SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
Note: See TracChangeset for help on using the changeset viewer.