void CConnection::handleClipboardRequest(rdr::U32 flags)
{
- if (!(flags & rfb::clipboardUTF8))
+ if (!(flags & rfb::clipboardUTF8)) {
+ vlog.debug("Ignoring clipboard request for unsupported formats 0x%x", flags);
return;
- if (!hasLocalClipboard)
+ }
+ if (!hasLocalClipboard) {
+ vlog.debug("Ignoring unexpected clipboard request");
return;
+ }
handleClipboardRequest();
}
const size_t* lengths,
const rdr::U8* const* data)
{
- if (!(flags & rfb::clipboardUTF8))
+ if (!(flags & rfb::clipboardUTF8)) {
+ vlog.debug("Ignoring clipboard provide with unsupported formats 0x%x", flags);
return;
+ }
strFree(serverClipboard);
serverClipboard = NULL;
void SConnection::handleClipboardRequest(rdr::U32 flags)
{
- if (!(flags & rfb::clipboardUTF8))
+ if (!(flags & rfb::clipboardUTF8)) {
+ vlog.debug("Ignoring clipboard request for unsupported formats 0x%x", flags);
return;
- if (!hasLocalClipboard)
+ }
+ if (!hasLocalClipboard) {
+ vlog.debug("Ignoring unexpected clipboard request");
return;
+ }
handleClipboardRequest();
}
const size_t* lengths,
const rdr::U8* const* data)
{
- if (!(flags & rfb::clipboardUTF8))
+ if (!(flags & rfb::clipboardUTF8)) {
+ vlog.debug("Ignoring clipboard provide with unsupported formats 0x%x", flags);
return;
+ }
strFree(clientClipboard);
clientClipboard = NULL;
void VNCServerST::handleClipboardData(VNCSConnectionST* client,
const char* data)
{
- if (client != clipboardClient)
+ if (client != clipboardClient) {
+ slog.debug("Ignoring unexpected clipboard data");
return;
+ }
desktop->handleClipboardData(data);
}