From b4fffa3372411a52093acac345c29069aeb49647 Mon Sep 17 00:00:00 2001 From: Alan Hargreaves Date: Sun, 21 Jun 2026 22:44:40 +1000 Subject: [PATCH] Any time we use pass a callsign over http we need to encodeURIComponent() --- src/plugins/layers/useRBN.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/layers/useRBN.js b/src/plugins/layers/useRBN.js index 978b7b86..706cbc16 100644 --- a/src/plugins/layers/useRBN.js +++ b/src/plugins/layers/useRBN.js @@ -277,7 +277,7 @@ export function useLayer({ mySpots.map(async (spot) => { if (spot.grid && spot.skimmerLat != null && spot.skimmerLon != null) return spot; try { - const locationResponse = await fetch(`/api/rbn/location/${spot.callsign}`); + const locationResponse = await fetch(`/api/rbn/location/${encodeURIComponent(spot.callsign)}`); if (locationResponse.ok) { const loc = await locationResponse.json(); return {