Skip to content

Commit 1b010e5

Browse files
committed
Toon URLEncode password
1 parent c7e556a commit 1b010e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/ToonThermostat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool CToonThermostat::Login()
304304
}
305305
m_ClientID = "";
306306
std::stringstream sstr;
307-
sstr << "username=" << m_UserName << "&password=" << m_Password;
307+
sstr << "username=" << m_UserName << "&password=" << CURLEncode::URLEncode(m_Password);
308308
std::string szPostdata=sstr.str();
309309
std::vector<std::string> ExtraHeaders;
310310
std::string sResult;

0 commit comments

Comments
 (0)