Used in Live Traffic Update Nokia LCD Display Project
Fork of NetServices by
Diff: services/http/server/impl/RPCHandler.cpp
- Revision:
- 2:a622b444296b
- Parent:
- 0:ac1725ba162c
diff -r 79049adc01ed -r a622b444296b services/http/server/impl/RPCHandler.cpp --- 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])); } } +*/ }