PxPlus User Forum

Twitter Twitter Twitter

Author Topic: cvs base64:ascii bug  (Read 708 times)

Allen Miglore

  • Silver Member
  • ***
  • Posts: 38
    • View Profile
    • UnForm
cvs base64:ascii bug
« on: November 13, 2022, 11:13:25 AM »
I think there is a bug in the cvs() base64 decode function.  If the input data ends with a newline, an extra $00$ is added to the decoded data.  I tested this in pxplus 14 and pxplus 19.

a$=cvs("test","ascii:base64")
print hta(cvs(a$,"base64:ascii"))
74657374
print hta(cvs(a$+$0a$,"base64:ascii"))
7465737400

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: cvs base64:ascii bug
« Reply #1 on: November 14, 2022, 12:12:07 PM »
I think you are right and that is a bug.

Please create a helpdesk ticket so we can properly track the bug and let you know when a fix is available.
Principal Software Engineer for PVX Plus Technologies LTD.