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;
ss << JSON_URL << "notify/";
ss << "?action=" << action;
ss << "&identity=" << identity;
ss << "&mac=" << macHash;
ss << "&identity=" << ARCH->internet().urlEncode(identity);
ss << "&mac=" << ARCH->internet().urlEncode(macHash);
ss << "&os=" << ARCH->internet().urlEncode(ARCH->getOSName());
ss << "&arch=" << ARCH->internet().urlEncode(ARCH->getPlatformName());