aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-31 10:57:15 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-31 10:57:15 -0800
commit646fa22c0169ba2b6697088c63616efe3b94f682 (patch)
tree5d40b0ee23c6af4c0c54a749df06be11f3e5ecb2 /qt-ui
parentfd33d6aa3f1f870b683557568a3dd780c2f25541 (diff)
downloadsubsurface-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.cpp3
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("&quot;", "%22"));
QNetworkAccessManager *am = new QNetworkAccessManager(this);
QNetworkRequest request(url);