diff options
| author | 2026-06-24 21:00:44 +0100 | |
|---|---|---|
| committer | 2026-06-24 21:00:44 +0100 | |
| commit | 25437d22847d28717974b1d19f3832a1a15d3459 (patch) | |
| tree | 9115dc5b649c39e29ebdd04bd971922058cea451 /src/stringutils.cpp | |
| parent | Fix CAPAB START having a harmless server prefix. (diff) | |
| parent | Fix null bytes not being encoded correctly by Percent::Encode. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'src/stringutils.cpp')
| -rw-r--r-- | src/stringutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stringutils.cpp b/src/stringutils.cpp index 9c42ae85e..482d2fd33 100644 --- a/src/stringutils.cpp +++ b/src/stringutils.cpp @@ -45,7 +45,7 @@ std::string Percent::Encode(const void* data, size_t length, const char* table, for (size_t idx = 0; idx < length; ++idx) { unsigned char chr = udata[idx]; - if (strchr(table, chr)) + if (memchr(table, chr, strlen(table))) { // The character is on the safe list; push it as is. buffer.push_back(chr); |
