v1.5.1
This commit is contained in:
parent
054060374e
commit
74f1f42deb
1 changed files with 125 additions and 43 deletions
|
|
@ -160,7 +160,7 @@ class Geo_Restrictions {
|
|||
private function get_country_for_ip(): string {
|
||||
$db_path = $this->config->get_geoip_database_path();
|
||||
|
||||
if ( '' === $db_path || ! file_exists( $db_path ) ) {
|
||||
if ( '' === $db_path || ! file_exists( $db_path ) || ! is_file( $db_path ) || is_link( $db_path ) ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue