Keep It Simple, Stupid | |
PerlMonks |
Re: beware of the newline at the end of the encode_base64-encoded stringsby ikegami (Patriarch) |
on Jan 04, 2008 at 22:29 UTC ( [id://660474]=note: print w/replies, xml ) | Need Help?? |
That bit me once too. It's particularly easy to forget encode_base64's $eol when using functions like encode, uri_escape and encode_entities regularly. The solution is simple (and documented): Pass an empty string as second argument if you do not want the encoded string to be broken into lines.
In Section
Meditations
|
|