URL encode identity and MAC address

This commit is contained in:
Jerry (Xinyu Hou) 2015-11-18 11:51:45 -08:00
parent 5f73d339aa
commit 4698394e21
1 changed files with 2 additions and 2 deletions

View File

@ -214,8 +214,8 @@ ToolApp::notifyActivation()
std::stringstream ss; std::stringstream ss;
ss << JSON_URL << "notify/"; ss << JSON_URL << "notify/";
ss << "?action=" << action; ss << "?action=" << action;
ss << "&identity=" << identity; ss << "&identity=" << ARCH->internet().urlEncode(identity);
ss << "&mac=" << macHash; ss << "&mac=" << ARCH->internet().urlEncode(macHash);
ss << "&os=" << ARCH->internet().urlEncode(ARCH->getOSName()); ss << "&os=" << ARCH->internet().urlEncode(ARCH->getOSName());
ss << "&arch=" << ARCH->internet().urlEncode(ARCH->getPlatformName()); ss << "&arch=" << ARCH->internet().urlEncode(ARCH->getPlatformName());