diff options
author | cerevra <cerevra@yandex-team.com> | 2022-11-13 13:32:22 +0300 |
---|---|---|
committer | cerevra <cerevra@yandex-team.com> | 2022-11-13 13:32:22 +0300 |
commit | 8160efc4de0d94701b85b71fe88fb953053f638c (patch) | |
tree | 50dff3175330f5be5433fc7be9cd9a9055887a5f /library/cpp/cgiparam | |
parent | f6425222980211ebf68592a1658e87f0fb442972 (diff) | |
download | ydb-8160efc4de0d94701b85b71fe88fb953053f638c.tar.gz |
Fix std implementation based unescaping ()
Diffstat (limited to 'library/cpp/cgiparam')
-rw-r--r-- | library/cpp/cgiparam/cgiparam.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/cgiparam/cgiparam.cpp b/library/cpp/cgiparam/cgiparam.cpp index f42226e185..ddc24c1f95 100644 --- a/library/cpp/cgiparam/cgiparam.cpp +++ b/library/cpp/cgiparam/cgiparam.cpp @@ -100,8 +100,8 @@ void TCgiParameters::JoinUnescaped(const TStringBuf key, char sep, TStringBuf va static inline TString DoUnescape(const TStringBuf s) { TString res; - res.reserve(CgiUnescapeBufLen(s.size())); - res.ReserveAndResize(CgiUnescape(res.begin(), s).size()); + res.ReserveAndResize(CgiUnescapeBufLen(s.size())); + res.resize(CgiUnescape(res.begin(), s).size()); return res; } |