summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-14 15:34:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-14 15:34:20 +0300
commit43ab22c6b58eccb328b1c738e6d7aa8e171e9d3f (patch)
tree560e3e192b55a2abed9b4d3cb5a15fc2e175bed4 /plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp
parentf1316ce218d01d5db243beb027039939cbb8710e (diff)
- fixes #712 (chaos in file name processing)
- massive code cleaning
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp b/plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp
index 143606a096..e8d0f73444 100644
--- a/plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendHost_ImageShack.cpp
@@ -26,10 +26,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-//---------------------------------------------------------------------------
#include "stdafx.h"
-//---------------------------------------------------------------------------
+/////////////////////////////////////////////////////////////////////////////////////////
+
CSendHost_ImageShack::CSendHost_ImageShack(HWND Owner, MCONTACT hContact, bool bAsync)
: CSend(Owner, hContact, bAsync)
{
@@ -39,9 +39,10 @@ CSendHost_ImageShack::CSendHost_ImageShack(HWND Owner, MCONTACT hContact, bool b
CSendHost_ImageShack::~CSendHost_ImageShack()
{
-};
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
-//---------------------------------------------------------------------------
int CSendHost_ImageShack::Send()
{
if (!g_hNetlibUser) { /// check Netlib
@@ -52,9 +53,7 @@ int CSendHost_ImageShack::Send()
memset(&m_nlhr, 0, sizeof(m_nlhr));
char* tmp; tmp = mir_u2a(m_pszFile);
HTTPFormData frm[] = {
- // {"Referer",HTTPFORM_HEADER("http://www.imageshack.us/upload_api.php")},
{ "fileupload", HTTPFORM_FILE(tmp) },
- //{"rembar","yes"},// no info bar on thumb
{ "public", "no" },
{ "key", HTTPFORM_8BIT(DEVKEY_IMAGESHACK) },
};