Browse Source

workaround for broken JSON from HamQTH api for G*2 calls

master
Fabian Kurz 2 years ago
parent
commit
e6ebf02aa6
  1. 1
      functions.php

1
functions.php

@ -666,6 +666,7 @@ function lookup ($call, $what, $date) {
$data = file_get_contents("https://www.hamqth.com/dxcc_json.php?callsign=$call");
}
$data = preg_replace("/\"Artificial Aerial\"/", "", $data); # bug in HamQTH lookup interface, unescaped quotes
$o = json_decode($data);

Loading…
Cancel
Save