Skip to content

Commit

Permalink
unescape plain/text clipboard data
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 20, 2024
1 parent f4323d6 commit 922c367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,7 @@ class XpraClient {
navigator.clipboard.readText().then(
(text) => {
this.debug("clipboard", "paste event, text=", text);
const clipboard_buffer = encodeURIComponent(text);
const clipboard_buffer = unescape(encodeURIComponent(text));
if (clipboard_buffer != this.clipboard_buffer) {
this.debug("clipboard", "clipboard contents have changed");
this.clipboard_buffer = clipboard_buffer;
Expand Down

0 comments on commit 922c367

Please sign in to comment.