mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
SanitizeString: allow '(' and ')'
'(' and ')' are valid in user agent strings, so should be reported as such in RPC `getpeerinfo`. Fixes #4537.
This commit is contained in:
parent
b50e5fe099
commit
d14d7deff0
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ using namespace std;
|
||||||
|
|
||||||
// safeChars chosen to allow simple messages/URLs/email addresses, but avoid anything
|
// safeChars chosen to allow simple messages/URLs/email addresses, but avoid anything
|
||||||
// even possibly remotely dangerous like & or >
|
// even possibly remotely dangerous like & or >
|
||||||
static string safeChars("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 .,;_/:?@");
|
static string safeChars("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 .,;_/:?@()");
|
||||||
string SanitizeString(const string& str)
|
string SanitizeString(const string& str)
|
||||||
{
|
{
|
||||||
string strResult;
|
string strResult;
|
||||||
|
|
Loading…
Add table
Reference in a new issue