GUAC-589: Fix regression in clipboard support - do not handle Ctrl-V unless clipboard integration is actually enabled.
This commit is contained in:
1 parent
e44ea62d83
commit
84b505dcb7
4 files changed
+74
-28
No files matched your search
@@ -28,6 +28,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import org.glyptodon.guacamole.GuacamoleException;
|
||||
import org.glyptodon.guacamole.GuacamoleServerException;
|
||||
import org.glyptodon.guacamole.GuacamoleUnsupportedException;
|
||||
import org.glyptodon.guacamole.net.auth.UserContext;
|
||||
import org.glyptodon.guacamole.properties.BooleanGuacamoleProperty;
|
||||
import org.glyptodon.guacamole.properties.GuacamoleProperties;
|
||||
@@ -79,6 +80,10 @@ public class CaptureClipboard extends AuthenticatingHttpServlet {
|
||||
|
||||
}
|
||||
|
||||
// Otherwise, inform not supported
|
||||
else
|
||||
throw new GuacamoleUnsupportedException("Clipboard integration not supported");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user