Skip to content

Conversation

@phl0
Copy link
Contributor

@phl0 phl0 commented Sep 22, 2023

This addresses 827528e and the previous code changes to prevent importing logs with different station callsigns.

My analysis of DK9JC's failed ADIF import showed that the code didn't properly handle the case that a station_callsign had an incorrect length in the ADIF tag to be imported. E.g.:

<STATION_CALLSIGN:9>DF2ET
<MY_CITY:6>Bochum

This led to a misleading error message:

Screenshot from 2023-09-22 08-41-05

The code took "DF2ET <MY" as the station callsign which is nonsense obviously. In addition the part of the following ADIF tag (MY_CITY) was sent to the browser and interpreted as HTML source code and this hidden from the user. See the HTML source of the output below.

So the code was changed to show the callsign using htmlentities (i.e. encoding the special chars to be displayed) and add some more details to the error message including a link to the wiki:

Screenshot from 2023-09-22 08-40-04

Hope this prevents forced import with wrong data ...

@magicbug magicbug merged commit 3b5ec17 into magicbug:dev Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants