This commit is contained in:
Javier Casares 2026-06-06 05:22:18 +00:00
commit 74f1f42deb

View file

@ -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 '';
}