diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-31 10:57:15 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-31 10:57:15 -0800 |
commit | 646fa22c0169ba2b6697088c63616efe3b94f682 (patch) | |
tree | 5d40b0ee23c6af4c0c54a749df06be11f3e5ecb2 /qt-ui | |
parent | fd33d6aa3f1f870b683557568a3dd780c2f25541 (diff) | |
download | subsurface-646fa22c0169ba2b6697088c63616efe3b94f682.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/socialnetworks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |