Dependents:   TimeZoneDemo EthernetJackTestCode MMEx_Challenge ntp_mem ... more

Files at this revision

API Documentation at this revision

Comitter:
segundo
Date:
Wed Nov 17 18:55:32 2010 +0000
Parent:
1:79049adc01ed
Child:
3:5a6792c147c0
Commit message:

Changed in this revision

services/http/server/impl/RPCHandler.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/services/http/server/impl/RPCHandler.cpp	Tue Nov 16 20:03:48 2010 +0000
+++ b/services/http/server/impl/RPCHandler.cpp	Wed Nov 17 18:55:32 2010 +0000
@@ -23,6 +23,7 @@
 
 #include "RPCHandler.h"
 #include "rpc.h"
+#include "url.h"
 
 //#define __DEBUG
 #include "dbg/dbg.h"
@@ -101,6 +102,10 @@
 
 void RPCHandler::cleanReq(char* data)
 {
+    char* decoded = url_decode(data);
+    strcpy(data, decoded);
+    free(decoded);
+/*    
   char* p;
   static const char* lGarbage[2] = {"%20", "+"};
   for(int i = 0; i < 2; i++)
@@ -110,6 +115,7 @@
       memset((void*) p, ' ', strlen(lGarbage[i]));
     }
   }
+*/  
 }