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
pull/1/head
Tatsuhiro Tsujikawa 2008-06-29 15:36:38 +00:00
parent 570837b325
commit f36e1b34c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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
2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Cleaned up configure.ac.

View File

@ -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 == '%') {