diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-11-26 10:43:01 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-11-26 10:44:42 +0100 |
| commit | e6751ca68abdb15db0ad91a9040d7bc1a413ae31 (patch) | |
| tree | 66275c62d8a579c18d9c6886a646f12620da3bb3 /src/utilstrencodings.cpp | |
| parent | Merge pull request #5340 (diff) | |
| parent | libbitcoinconsensus: don't require any global constructors (diff) | |
| download | discoin-e6751ca68abdb15db0ad91a9040d7bc1a413ae31.tar.xz discoin-e6751ca68abdb15db0ad91a9040d7bc1a413ae31.zip | |
Merge pull request #5361
3223179 libbitcoinconsensus: don't require any global constructors (Cory Fields)
Diffstat (limited to 'src/utilstrencodings.cpp')
| -rw-r--r-- | src/utilstrencodings.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp index a961b3c5c..d0062d454 100644 --- a/src/utilstrencodings.cpp +++ b/src/utilstrencodings.cpp @@ -14,13 +14,13 @@ using namespace std; -/** - * safeChars chosen to allow simple messages/URLs/email addresses, but avoid anything - * even possibly remotely dangerous like & or > - */ -static string safeChars("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 .,;_/:?@()"); string SanitizeString(const string& str) { + /** + * safeChars chosen to allow simple messages/URLs/email addresses, but avoid anything + * even possibly remotely dangerous like & or > + */ + static string safeChars("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 .,;_/:?@()"); string strResult; for (std::string::size_type i = 0; i < str.size(); i++) { |