|
a/libupnpp/soaphelp.cxx |
|
b/libupnpp/soaphelp.cxx |
|
... |
|
... |
96 |
{
|
96 |
{
|
97 |
map<string, string>::const_iterator it = args.find(nm);
|
97 |
map<string, string>::const_iterator it = args.find(nm);
|
98 |
if (it == args.end() || it->second.empty()) {
|
98 |
if (it == args.end() || it->second.empty()) {
|
99 |
return false;
|
99 |
return false;
|
100 |
}
|
100 |
}
|
101 |
if (it->second[0] == 'F' || it->second[0] == '0') {
|
101 |
if (it->second[0] == 'F' || it->second[0] == 'f' ||
|
|
|
102 |
it->second[0] == 'N' || it->second[0] == 'n' ||
|
|
|
103 |
it->second[0] == '0') {
|
102 |
*value = false;
|
104 |
*value = false;
|
103 |
} else if (it->second[0] == 'T' || it->second[0] == '1') {
|
105 |
} else if (it->second[0] == 'T' || it->second[0] == 't' ||
|
|
|
106 |
it->second[0] == 'Y' || it->second[0] == 'y' ||
|
|
|
107 |
it->second[0] == '1') {
|
104 |
*value = true;
|
108 |
*value = true;
|
105 |
} else {
|
109 |
} else {
|
106 |
return false;
|
110 |
return false;
|
107 |
}
|
111 |
}
|
108 |
return true;
|
112 |
return true;
|