QUOTE (boocko @ August 12, 2013 03:14 am) |
Just an observation I found "by accident": if any of the waypoint codes contain character ' the map doesn't show. This behavior doesn't normally break anything, because the codes are nice GCXXX. Due to some import mistake I got waypoints names and codes swapped. Because "Joe's burger" was one of the codes, nothing showed on the map, not even the regular waypoints. After removing the ' the map worked ok. GSAK allows such codes, so it might be safe to add a check? |
Right, this will break because the cache code field is used in the three 'buttons' in the info window which allow you to toggle the User Flag etc. An unescaped single quote in there will break the javascript.
It would be possible to add the SQLite and Javascript escape characters to keep this working when there is a single quote in the code field, but I hadn't added the code to do all that as the code field should never have a single quote in it in the first place. I'll take a look how easy it is to add if you think this is likely to be a common problem.