nhttpd: don't decode URL parameters multiple times

This commit is contained in:
Gaucho316
2012-12-29 17:53:05 +01:00
committed by micha-bbg
parent 4965619a79
commit 1b4ad51d0a
3 changed files with 14 additions and 9 deletions

View File

@@ -214,7 +214,7 @@ std::string decodeString(std::string encodedString) {
return result;
}
//-----------------------------------------------------------------------------
// Encode URLEncoded std::string
// HTMLEncode std::string
//-----------------------------------------------------------------------------
std::string encodeString(std::string decodedString) {
unsigned int len = sizeof(char) * decodedString.length() * 5 + 1;