Merge remote-tracking branch 'ripple/develop' into develop

This commit is contained in:
Richard Holland
2022-08-29 10:52:04 +00:00
78 changed files with 948 additions and 1181 deletions

View File

@@ -482,11 +482,10 @@ isMemoOkay(STObject const& st, std::string& reason)
// The only allowed characters for MemoType and MemoFormat are the
// characters allowed in URLs per RFC 3986: alphanumerics and the
// following symbols: -._~:/?#[]@!$&'()*+,;=%
static std::array<char, 256> const allowedSymbols = [] {
std::array<char, 256> a;
a.fill(0);
static constexpr std::array<char, 256> const allowedSymbols = []() {
std::array<char, 256> a{};
std::string symbols(
std::string_view symbols(
"0123456789"
"-._~:/?#[]@!$&'()*+,;=%"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"