diff options
| author | Cory Fields <[email protected]> | 2014-11-24 14:49:43 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-11-24 15:23:29 -0500 |
| commit | 322317951f2764d3cb55eea7d34f950b9c54e01a (patch) | |
| tree | a9c3499ff42a2feca15c958aa3d09688e66d804b /src/utilstrencodings.cpp | |
| parent | Merge pull request #4727 (diff) | |
| download | discoin-322317951f2764d3cb55eea7d34f950b9c54e01a.tar.xz discoin-322317951f2764d3cb55eea7d34f950b9c54e01a.zip | |
libbitcoinconsensus: don't require any global constructors
These static objects are only used in once place, so declare them there instead.
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++) { |