PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Allen Miglore on November 13, 2022, 11:13:25 AM

Title: cvs base64:ascii bug
Post by: Allen Miglore 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
Title: Re: cvs base64:ascii bug
Post by: Devon Austen on November 14, 2022, 12:12:07 PM
I think you are right and that is a bug.

Please create (https://helpdesk2.pvxplus.com/open.php) a helpdesk ticket so we can properly track the bug and let you know when a fix is available.