Update of /cvsroot/boost/boost/libs/asio/example/http/server
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3096/server
Modified Files:
request_handler.cpp
Log Message:
Fix URL-decoding.
Index: request_handler.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/asio/example/http/server/request_handler.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- request_handler.cpp 4 Jan 2007 05:53:05 -0000 1.3
+++ request_handler.cpp 20 May 2007 02:52:00 -0000 1.4
@@ -87,13 +87,14 @@
{
if (in[i] == '%')
{
- if (i + 3 < in.size())
+ if (i + 3 <= in.size())
{
int value;
std::istringstream is(in.substr(i + 1, 2));
if (is >> std::hex >> value)
{
out += static_cast<char>(value);
+ i += 2;
}
else
{
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs