summaryrefslogtreecommitdiffstats
path: root/net/base/escape.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/escape.h')
-rw-r--r--net/base/escape.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/base/escape.h b/net/base/escape.h
index 17f8646..597755f 100644
--- a/net/base/escape.h
+++ b/net/base/escape.h
@@ -11,10 +11,15 @@
// Escaping --------------------------------------------------------------------
-// Escape a file or url path. This includes:
+// Escape a file. This includes:
// non-printable, non-7bit, and (including space) "#%:<>?[\]^`{|}
std::string EscapePath(const std::string& path);
+// Escape an url. This includes:
+// non-printable, non-7bit, and (including space) ?>=<;+'&%$#"![\]^`{|}
+// Space is escaped as + and other special characters as %XX (hex).
+std::string EscapeUrl(const std::string& path);
+
// Escape all non-ASCII input.
std::string EscapeNonASCII(const std::string& input);