#56 ns_base64encode fails on embedded nulls

Bug
closed-fixed
5
2006-12-01
2006-01-14
No

lexxsrv:nscp 8> ns_base64encode test\0
dGVzdMCA

lexxsrv:nscp 9> base64::encode test\0
dGVzdAA=

The built-in ns_base64encode seems to have
problems with strings containing embedded
characters.

This works though:

lexxsrv:nscp 4> ns_base64encode test
dGVzdA==
lexxsrv:nscp 5> base64::encode test
dGVzdA==

Discussion

  • Zoran Vasiljevic

    Logged In: YES
    user_id=95086

    Fixed in HEAD.

     
  • Zoran Vasiljevic

    • assigned_to: nobody --> vasiljevic
    • labels: --> 715224
    • status: open --> open-fixed
     
  • Zoran Vasiljevic

    • status: open-fixed --> closed-fixed
     
  • Stephen

    Stephen - 2006-12-01
    • labels: 715224 --> NaviServer - libnsd, libnsthread, nsd
    • milestone: --> 469714
     
  • Stephen

    Stephen - 2006-12-01
    • milestone: 469714 --> 473033
     
  • Stephen

    Stephen - 2006-12-01
    • milestone: 473033 --> Bug
     

Log in to post a comment.