forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user