diff options
author | alejes <alejes@yandex-team.ru> | 2022-02-10 16:49:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:21 +0300 |
commit | 296addf192418e73b12dd8c5110ac1a36d9dee19 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/quote/quote.cpp | |
parent | b60afd91b05e759239ecb08faaf494d5c7445d4e (diff) | |
download | ydb-296addf192418e73b12dd8c5110ac1a36d9dee19.tar.gz |
Restoring authorship annotation for <alejes@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/quote/quote.cpp')
-rw-r--r-- | library/cpp/string_utils/quote/quote.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp index 27cb3a76d0..e523350b80 100644 --- a/library/cpp/string_utils/quote/quote.cpp +++ b/library/cpp/string_utils/quote/quote.cpp @@ -302,10 +302,10 @@ void UrlEscape(TString& url, bool forceEscape) { char* to = tempBuf.Data(); url.AssignNoAlias(to, UrlEscape(to, url.data(), forceEscape)); } - -TString UrlEscapeRet(const TStringBuf from, bool forceEscape) { - TString to; + +TString UrlEscapeRet(const TStringBuf from, bool forceEscape) { + TString to; to.ReserveAndResize(CgiEscapeBufLen(from.size())); to.resize(UrlEscape(to.begin(), from.begin(), forceEscape) - to.data()); - return to; -} + return to; +} |