mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Lachesis: remove newlines every 64 characters in EncodeBase64
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@110 1a98c847-1fd6-4fd8-948a-caf3550aa51b
This commit is contained in:
parent
3b7cd5d89a
commit
7d46f9250c
4
rpc.cpp
4
rpc.cpp
@ -774,6 +774,10 @@ string EncodeBase64(string s)
|
||||
string result(bptr->data, bptr->length-1);
|
||||
BIO_free_all(b64);
|
||||
|
||||
// Remove newlines every 64 characters
|
||||
result.erase(std::remove(result.begin(), result.end(), '\n'), result.end());
|
||||
result.erase(std::remove(result.begin(), result.end(), '\r'), result.end());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user