Use validation function in Qra lib and extend by bogus grid detection

This commit is contained in:
phl0
2025-11-10 00:11:17 +01:00
parent 1e50d4c2f9
commit 15a5640e79
2 changed files with 10 additions and 0 deletions

View File

@@ -50,6 +50,11 @@ class Callbook {
if (! array_key_exists('geoloc', $callbook)) {
$callbook['geoloc'] = '';
}
// qrz.com gives AA00aa if the user deleted his grid from the profile
$this->ci->load->library('qra');
if (!$this->ci->qra->validate_grid($callbook['gridsquare'])) {
$callbook['gridsquare'] = '';
}
return $callbook;
}