mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
nhttpd: skip doubles decode on channlename, revert 0ac9beb40c
Origin commit data
------------------
Branch: ni/coolstream
Commit: ed318d97bc
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-12-17 (Mon, 17 Dec 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -203,12 +203,9 @@ std::string decodeString(std::string encodedString) {
|
||||
iStr = strtoul(hex, NULL, 16); /* convert to Hex char */
|
||||
result += (char) iStr;
|
||||
count += 3;
|
||||
#if 0
|
||||
//why decode '+' to ' ' ?
|
||||
} else if (string[count] == '+') {
|
||||
result += ' ';
|
||||
count++;
|
||||
#endif
|
||||
} else {
|
||||
result += string[count];
|
||||
count++;
|
||||
|
@@ -161,7 +161,11 @@ bool CWebserverRequest::ParseParams(std::string param_string) {
|
||||
if (!ySplitStringExact(param_string, "&", param, param_string))
|
||||
ende = true;
|
||||
if (ySplitStringExact(param, "=", name, value)) {
|
||||
if("channelname" == name){//skip doubles decode on channlename
|
||||
value = trim((value));
|
||||
}else{
|
||||
value = trim(decodeString(value));
|
||||
}
|
||||
if (ParameterList[name].empty())
|
||||
ParameterList[name] = value;
|
||||
else {
|
||||
|
Reference in New Issue
Block a user