-
-
Notifications
You must be signed in to change notification settings - Fork 223
advanced clipboard filtering #274
Copy link
Copy link
Closed
Labels
Description
At the moment, the only restrictions we have on clipboard data transfers are:
- size check:
MAX_CLIPBOARD_PACKET_SIZE = 256*1024
Any clipboard zlib-compressed data larger than 256KB is simply dropped with a log warning. Maybe this limit is too low? We can raise it with #275
- some data types we drop rather than trying to handle (mostly picture formats, see macos to handle more clipboard formats, converting them on the fly #273)
- some targets we refuse to handle:
discard_targets = ("SAVE_TARGETS", "COMPOUND_TEXT")
It would be nice if we could inject more filters, say:
- a regex filter for strings (client-side interpretation of encodings can make this very tricky)
- an external filter (virus scanner, etc)
- clipboard direction: clipboard direction restrictions: client to server only, server to client only #276
Reactions are currently unavailable