mirror of https://github.com/aria2/aria2
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.ccpull/1/head
parent
570837b325
commit
f36e1b34c2
|
@ -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>
|
2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Cleaned up configure.ac.
|
Cleaned up configure.ac.
|
||||||
|
|
|
@ -185,7 +185,7 @@ void Request::urlencode(std::string& result, const std::string& src) const
|
||||||
result = src+" ";
|
result = src+" ";
|
||||||
size_t index = lastIndex;
|
size_t index = lastIndex;
|
||||||
while(index-- > 0) {
|
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.
|
// '/' is not urlencoded because src is expected to be a path.
|
||||||
if(Util::shouldUrlencode(c)) {
|
if(Util::shouldUrlencode(c)) {
|
||||||
if(c == '%') {
|
if(c == '%') {
|
||||||
|
|
Loading…
Reference in New Issue