Skip to content

Commit bac5068

Browse files
feat(geolocation): Retrieve database path
1 parent cb37b17 commit bac5068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Bounce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getBouncerInstance(array $settings, bool $forceReload = false):
8989
'save_result' => $this->getBoolSettings('crowdsec_geolocation_save_result'),
9090
'maxmind' => [
9191
'database_type' => $this->getStringSettings('crowdsec_geolocation_maxmind_database_type')?:Constants::MAXMIND_COUNTRY,
92-
'database_path' => CROWDSEC_BOUNCER_GEOLOCATION_DIR. '/'.ltrim((string) esc_attr(get_option('crowdsec_geolocation_maxmind_database_path')), '/'),
92+
'database_path' => CROWDSEC_BOUNCER_GEOLOCATION_DIR. '/'.ltrim($this->getStringSettings('crowdsec_geolocation_maxmind_database_path'), '/'),
9393
]
9494
]
9595
];

0 commit comments

Comments
 (0)