THome icon indicating copy to clipboard operation
THome copied to clipboard

Error with long complex link

Open ClimberMel opened this issue 4 years ago • 2 comments
trafficstars

I ran across a minor issue with a long complex link.

https://app.rockgympro.com/b/widget/?a=offering&offering_guid=27bfb7a0288743b5d1291c6b09762e27&random=5bd455ac38eda&iframeid=&mode=p That link is an example, but not a working link. To test so far, in debug it identifies: not well-formed (invalid token): line 88, column 75 File "U:\VSCode-projects\Web\Dashboard\THome\main.py", line 6, in tree = ET.parse("sites.xml") That is the row above. Col 75 is the "i" in guid, so I'm going to guess that it is a length issue of being over 75 isn't working with the parser. I know it isn't the URL as I paste the URL into the resulting index.html and the button works fine. It is probably going to be very rare to have a href that exceeds 75 characters, but if I find the problem and/or fix, I will post it.

Cheers and thanks, Mel

ClimberMel avatar Feb 10 '21 22:02 ClimberMel

Thanks for reporting that! will see into it later if i can figure something out,

ve3lst avatar Feb 22 '21 16:02 ve3lst

To be valid xml, the & in the URL needed to be escaped like this:

https://app.rockgympro.com/b/widget/?a=offering&offering_guid=27bfb7a0288743b5d1291c6b09762e27&random=5bd455ac38eda&iframeid=&mode=p

AlexanderS avatar Jan 02 '23 19:01 AlexanderS