summaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/quote/quote.cpp
diff options
context:
space:
mode:
authorOleg Sidorkin <[email protected]>2022-02-10 16:49:36 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:36 +0300
commit5ce74d4fee2d42a4b86efc02dfdc704d458760e1 (patch)
treef16a3558ca40d453a1c6a2ed764bd75d64cffade /library/cpp/string_utils/quote/quote.cpp
parentcd33f9aa8461f8e2b0b9e68efbb6bc9856197dc9 (diff)
Restoring authorship annotation for Oleg Sidorkin <[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.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp
index e523350b80a..efbdd369033 100644
--- a/library/cpp/string_utils/quote/quote.cpp
+++ b/library/cpp/string_utils/quote/quote.cpp
@@ -169,13 +169,13 @@ TString CGIEscapeRet(const TStringBuf url) {
return to;
}
-TString& AppendCgiEscaped(const TStringBuf value, TString& to) {
- const size_t origLength = to.length();
- to.ReserveAndResize(origLength + CgiEscapeBufLen(value.size()));
- to.resize(CGIEscape(to.begin() + origLength, value.data(), value.size()) - to.data());
- return to;
-}
-
+TString& AppendCgiEscaped(const TStringBuf value, TString& to) {
+ const size_t origLength = to.length();
+ to.ReserveAndResize(origLength + CgiEscapeBufLen(value.size()));
+ to.resize(CGIEscape(to.begin() + origLength, value.data(), value.size()) - to.data());
+ return to;
+}
+
// More general version of CGIEscape. The optional safe parameter specifies
// additional characters that should not be quoted — its default value is '/'.