From 00a4fc0cd79a60dbdf95126ef1ebfd06f8cbaa57 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 26 Jun 2019 03:20:38 +0100 Subject: [PATCH] clipboard: good places to dump the raw byte stream. Change-Id: Idb81bd9f1e090ad337c3f98c03c4fd79f7da51a6 --- kit/ChildSession.cpp | 1 + wsd/LOOLWSD.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index 20add313e..93387eef6 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -993,6 +993,7 @@ bool ChildSession::setClipboard(const char* buffer, int length, const std::vecto std::getline(stream, command, '\n'); data.read(stream); +// data.dumpState(std::cerr); size_t nInCount = data.size(); size_t pInSizes[nInCount] = { 0, }; diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 0a84bdb09..92c0fa308 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -2152,6 +2152,7 @@ private: StringTokenizer reqPathTokens(request.getURI(), "/?", StringTokenizer::TOK_IGNORE_EMPTY | StringTokenizer::TOK_TRIM); if (reqPathTokens.count() > 0 && reqPathTokens[0] == "clipboard") { +// Util::dumpHex(std::cerr, "clipboard:\n", "", socket->getInBuffer()); // lots of data ... handleClipboardRequest(request, message, disposition); } else if (!(request.find("Upgrade") != request.end() && Poco::icompare(request["Upgrade"], "websocket") == 0) &&