-rw-r--r-- | src/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index 48e486a..82a4a0a 100644 --- a/src/util.cc +++ b/src/util.cc | |||
@@ -1,12 +1,14 @@ | |||
1 | #include <cstdlib> | ||
2 | #include <cstring> | ||
1 | #include "kingate/util.h" | 3 | #include "kingate/util.h" |
2 | #include "kingate/exception.h" | 4 | #include "kingate/exception.h" |
3 | 5 | ||
4 | namespace kingate { | 6 | namespace kingate { |
5 | 7 | ||
6 | static const char *safeChars = | 8 | static const char *safeChars = |
7 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | 9 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
8 | "abcdefghijklmnopqrstuvwxyz" | 10 | "abcdefghijklmnopqrstuvwxyz" |
9 | "0123456789" | 11 | "0123456789" |
10 | "_-" ; | 12 | "_-" ; |
11 | 13 | ||
12 | string url_encode(const string& str) { | 14 | string url_encode(const string& str) { |