[connections/gnome-41] vnc-connection: Only paste clipboard content that is text
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/gnome-41] vnc-connection: Only paste clipboard content that is text
- Date: Wed, 27 Oct 2021 13:39:49 +0000 (UTC)
commit 1e0998aa54edc3e7636dd3a8acc93ef0bc2e0aeb
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Oct 27 14:30:44 2021 +0200
vnc-connection: Only paste clipboard content that is text
Otherwise Vnc connections cause a crash.
To reproduce:
1. Copy an image to the clipboard
2. Connect with $ gnome-connections vnc://localhost
See the crash. :)
src/vnc-connection.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/vnc-connection.vala b/src/vnc-connection.vala
index 4ae8452..6f60b01 100644
--- a/src/vnc-connection.vala
+++ b/src/vnc-connection.vala
@@ -238,7 +238,8 @@ namespace Connections {
return;
string message = clipboard.wait_for_text ();
- display.client_cut_text (message);
+ if (message != null)
+ display.client_cut_text (message);
}
public void scale () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]