From 646fa22c0169ba2b6697088c63616efe3b94f682 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 31 Jan 2015 10:57:15 -0800 Subject: Correctly quote a double quote in the message Otherwise the message on Facebook will end at the first double quote. Signed-off-by: Dirk Hohndel --- qt-ui/socialnetworks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/socialnetworks.cpp b/qt-ui/socialnetworks.cpp index ce745e79a..0027bd1bc 100644 --- a/qt-ui/socialnetworks.cpp +++ b/qt-ui/socialnetworks.cpp @@ -212,8 +212,7 @@ void FacebookManager::sendDive() QUrl url("https://graph.facebook.com/v2.2/" + QString(prefs.facebook.album_id) + "/photos?" + "&access_token=" + QString(prefs.facebook.access_token) + "&source=image" + - "&message=" + dialog.text()); - + "&message=" + dialog.text().replace(""", "%22")); QNetworkAccessManager *am = new QNetworkAccessManager(this); QNetworkRequest request(url); -- cgit v1.2.3-70-g09d2