diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-06-29 15:36:38 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-06-29 15:36:38 +0000 |
| commit | f36e1b34c2de59dabc206d54411681b42871284f (patch) | |
| tree | abeb74dbad8bfe2c7e0c0550ff4a2fb2cd357812 /src/Request.cc | |
| parent | 570837b32591f6fb6335b1f9e5a5085bfd2ecf4c (diff) | |
2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that UTF-8 encoded URL is not URL-encoded
properly.
* src/Request.cc
Diffstat (limited to 'src/Request.cc')
| -rw-r--r-- | src/Request.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Request.cc b/src/Request.cc index 1cb9124b..0556b953 100644 --- a/src/Request.cc +++ b/src/Request.cc @@ -185,7 +185,7 @@ void Request::urlencode(std::string& result, const std::string& src) const result = src+" "; size_t index = lastIndex; while(index-- > 0) { - const char c = result[index]; + const unsigned char c = result[index]; // '/' is not urlencoded because src is expected to be a path. if(Util::shouldUrlencode(c)) { if(c == '%') { |
