diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-01-12 15:47:25 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-01-13 07:32:43 +0100 |
commit | a8e61c8058ef2aa493b2e6be45d6995b513edcba (patch) | |
tree | 5dfa4e8757c7d92bdec223a34bcb55467e5671bc /src/plugins/cpaster | |
parent | a690828cca4b70db48ea0aa39c79e782b650b0d8 (diff) | |
download | qt-creator-a8e61c8058ef2aa493b2e6be45d6995b513edcba.tar.gz |
CodePaster: Fix pastebin.ca protocol
Actually this is circumventing the server side problem.
Task-number: QTCREATORBUG-13802
Change-Id: I93fc9d0adde949a33c11be4cb73d8c28a75e3301
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r-- | src/plugins/cpaster/pastebindotcaprotocol.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cpaster/pastebindotcaprotocol.cpp b/src/plugins/cpaster/pastebindotcaprotocol.cpp index feb04bb1c8..902ffd0fa4 100644 --- a/src/plugins/cpaster/pastebindotcaprotocol.cpp +++ b/src/plugins/cpaster/pastebindotcaprotocol.cpp @@ -38,6 +38,7 @@ #include <QStringList> static const char urlC[] = "http://pastebin.ca/"; +static const char internalUrlC[] = "http://pbin.ca/"; static const char protocolNameC[] = "Pastebin.Ca"; static inline QByteArray expiryValue(int expiryDays) @@ -135,7 +136,7 @@ void PasteBinDotCaProtocol::paste(const QString &text, data += "&name="; // Title or name. data += QUrl::toPercentEncoding(description); // fire request - const QString link = QLatin1String(urlC) + QLatin1String("quiet-paste.php"); + const QString link = QLatin1String(internalUrlC) + QLatin1String("quiet-paste.php"); m_pasteReply = httpPost(link, data); connect(m_pasteReply, SIGNAL(finished()), this, SLOT(pasteFinished())); } |