Update of /cvsroot/boost/boost/libs/asio/example/http/server3
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3096/server3

Modified Files:
        request_handler.cpp 
Log Message:
Fix URL-decoding.


Index: request_handler.cpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/asio/example/http/server3/request_handler.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- request_handler.cpp 7 May 2007 11:46:22 -0000       1.1
+++ request_handler.cpp 20 May 2007 02:52:00 -0000      1.2
@@ -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

Reply via email to