Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Fixed: Pushover notification setup in settings (could contain invalid…
Browse files Browse the repository at this point in the history
… characters)

git-svn-id: svn://svn.code.sf.net/p/domoticz/code/domoticz@2029 f5da7d14-956e-45c6-856f-fe31d67bfda7
  • Loading branch information
gizmocuz committed Sep 30, 2014
1 parent 6d2b151 commit 0cd3fac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Version 2.0.xxxx (September xxth 2014)
- Fixed: Possible crash in Eventsystem (GetCurrentMeasurementStates) where string value was empty
- Implemented: Manual add Blinds T6 type (DC106, YOOHA, Rohrmotor24 RMF)
- Fixed: Pushover notification setup in settings (could contain invalid characters)

Version 2.0.2025 (September 28th 2014)
- Implemented: Fibaro Link data pusher
Expand Down
12 changes: 6 additions & 6 deletions main/WebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3858,8 +3858,8 @@ void CWebServer::HandleCommand(const std::string &cparam, Json::Value &root)
}
else if (cparam=="testpushover")
{
std::string poapi=m_pWebEm->FindValue("poapi");
std::string pouser=m_pWebEm->FindValue("pouser");
std::string poapi = CURLEncode::URLDecode(m_pWebEm->FindValue("poapi"));
std::string pouser = CURLEncode::URLDecode(m_pWebEm->FindValue("pouser"));
if ((poapi=="")||(pouser==""))
return;

Expand Down Expand Up @@ -6482,13 +6482,13 @@ char * CWebServer::PostSettings()
m_mainworker.GetSunSettings();
}
std::string ProwlAPI=m_pWebEm->FindValue("ProwlAPIKey");
m_sql.UpdatePreferencesVar("ProwlAPI",ProwlAPI.c_str());
m_sql.UpdatePreferencesVar("ProwlAPI", CURLEncode::URLDecode(ProwlAPI).c_str());
std::string NMAAPI=m_pWebEm->FindValue("NMAAPIKey");
m_sql.UpdatePreferencesVar("NMAAPI",NMAAPI.c_str());
m_sql.UpdatePreferencesVar("NMAAPI", CURLEncode::URLDecode(NMAAPI).c_str());
std::string PushoverAPI=m_pWebEm->FindValue("PushoverAPIKey");
m_sql.UpdatePreferencesVar("PushoverAPI",PushoverAPI.c_str());
m_sql.UpdatePreferencesVar("PushoverAPI", CURLEncode::URLDecode(PushoverAPI).c_str());
std::string PushoverUser=m_pWebEm->FindValue("PushoverUserID");
m_sql.UpdatePreferencesVar("PushoverUser",PushoverUser.c_str());
m_sql.UpdatePreferencesVar("PushoverUser", CURLEncode::URLDecode(PushoverUser).c_str());
std::string DashboardType=m_pWebEm->FindValue("DashboardType");
m_sql.UpdatePreferencesVar("DashboardType",atoi(DashboardType.c_str()));
std::string MobileType=m_pWebEm->FindValue("MobileType");
Expand Down

0 comments on commit 0cd3fac

Please sign in to comment.