From 2ec2fe72f5754f59363335f9d5578600022661a1 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 26 Apr 2012 20:02:14 +0000 Subject: FacebookRM: version bump Version 0.0.8.1 ! Fixed getting notifications on login ! Fixed getting unread messages on login ! Getting unread messages on login with right timestamp ! Fixed getting newsfeeds ! Fixed related to deleting contacts from miranda/server + New newsfeed type option "Applications and Games" + Contacts now have MirVer "Facebook" (for Fingerpring plugin) + Getting attachements for unread messages on login ! Fixed avatars in Miranda 0.10.0#3 and newer (thanks borkra) ! Some small fixes (thanks borkra) x Doesn't work notification about friend requests git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@289 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- FacebookRM/utils.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'FacebookRM/utils.cpp') diff --git a/FacebookRM/utils.cpp b/FacebookRM/utils.cpp index 02a7662..5440757 100644 --- a/FacebookRM/utils.cpp +++ b/FacebookRM/utils.cpp @@ -32,6 +32,17 @@ std::string utils::url::encode(const std::string &s) return ret; } +std::string utils::url::decode(std::string data) +{ + // TODO: Better and universal method? + utils::text::replace_all( &data, "%2F", "/" ); + utils::text::replace_all( &data, "%3F", "?" ); + utils::text::replace_all( &data, "%3D", "=" ); + utils::text::replace_all( &data, "%26", "&" ); + + return data; +} + std::string utils::time::unix_timestamp( ) { time_t in = ::time( NULL ); -- cgit v1.2.3