Chromium Code Reviews| Index: net/base/escape.h |
| diff --git a/net/base/escape.h b/net/base/escape.h |
| index 1915d24418883a2186ffc329733a93bc43938085..444f4336e9ecc9a3dfdc955fe8eafc6009b74010 100644 |
| --- a/net/base/escape.h |
| +++ b/net/base/escape.h |
| @@ -54,6 +54,11 @@ NET_EXPORT void AppendEscapedCharForHTML(char c, std::string* output); |
| NET_EXPORT std::string EscapeForHTML(const std::string& text); |
| NET_EXPORT base::string16 EscapeForHTML(const base::string16& text); |
| +// Escapes characters in text suitable for use as a query part. |
| +// We %XX everything except alphanumerics, the restricted chracters(;/?:@&=+$,), |
| +// the mark characters(-_.!~*'()). |
|
asanka
2014/10/10 20:59:16
You are once again going to be bitten by https://u
|
| +NET_EXPORT std::string EscapeQueryPart(const std::string& text); |
| + |
| // Unescaping ------------------------------------------------------------------ |
| class UnescapeRule { |