aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/quote/quote.cpp
diff options
context:
space:
mode:
authoralejes <alejes@yandex-team.ru>2022-02-10 16:49:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:21 +0300
commit296addf192418e73b12dd8c5110ac1a36d9dee19 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/quote/quote.cpp
parentb60afd91b05e759239ecb08faaf494d5c7445d4e (diff)
downloadydb-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.cpp10
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;
+}