summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 391c7249f3..b4abb94c6a 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -754,7 +754,7 @@ void parseJsCookies(const std::string &search, const std::string &data, std::map
if (pos2 == std::string::npos)
continue;
- std::string name = data.substr(pos, pos2 - pos);
+ std::string name = utils::url::encode(data.substr(pos, pos2 - pos));
pos = pos2 + 3;
pos2 = data.find("\"", pos);
@@ -762,7 +762,7 @@ void parseJsCookies(const std::string &search, const std::string &data, std::map
continue;
std::string value = data.substr(pos, pos2 - pos);
- cookies[name] = utils::text::html_entities_decode(value);
+ cookies[name] = utils::url::encode(utils::text::html_entities_decode(value));
}
}