summaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/quote/quote.cpp
diff options
context:
space:
mode:
authoralejes <[email protected]>2022-02-10 16:49:20 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:20 +0300
commitb60afd91b05e759239ecb08faaf494d5c7445d4e (patch)
treea8c3391fc9e065ab7e9ade6768708b244dff85d7 /library/cpp/string_utils/quote/quote.cpp
parent523d26598d9784601932189f7fceb34d61bf7641 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 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 e523350b80a..27cb3a76d02 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;
+}