Author Topic: Lines with tildes ('~') in them are not displayed  (Read 5893 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Lines with tildes ('~') in them are not displayed
« Reply #15 on: May 01, 2011, 05:34:39 pm »
Ok, other theory: maybe durring the process, 1 is added to the char (to be subtracted later). If this is so, 126 becomes 127, which is the control character DEL. Maybe this has something to do with it?
Anyway, its a weird bug.

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Lines with tildes ('~') in them are not displayed
« Reply #16 on: May 02, 2011, 02:59:40 am »
Here's what was happening:
Base64 has + as a valid character.
+ is not valid for URLs.
~ just happens to have a + in it, if it's in a specific spot.


Solution:
Find/replace + for - on send, as - is a valid URL char and not used in Base64.
Find/replace - for + on receive, then base64 decode.

Problem solved.
Omnimaga Admin