Skip to content

Commit

Permalink
security: [M3-9447] - Update react-vnc for security updates (#11758)
Browse files Browse the repository at this point in the history
* Pin lowest path-to-regexp to 0.1.12

* try a different fix

* cleanup

* try and fix reloads

* Added changeset: Update react-vnc to 3.0.7
  • Loading branch information
abailly-akamai authored Feb 28, 2025
1 parent e946adb commit b62843b
Show file tree
Hide file tree
Showing 4 changed files with 4,934 additions and 13,001 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11758-changed-1740751964030.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Update react-vnc to 3.0.7 ([#11758](https://github.com/linode/manager/pull/11758))
2 changes: 1 addition & 1 deletion packages/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"react-redux": "~7.1.3",
"react-router-dom": "~5.3.4",
"react-router-hash-link": "^2.3.1",
"react-vnc": "^2.0.2",
"react-vnc": "^3.0.7",
"react-waypoint": "^10.3.0",
"recharts": "^2.14.1",
"recompose": "^0.30.0",
Expand Down
11 changes: 10 additions & 1 deletion packages/manager/src/features/Lish/Glish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ const Glish = (props: Props) => {

const handlePaste = (event: ClipboardEvent) => {
event.preventDefault();
if (!ref.current?.rfb) {
if (
!ref.current?.rfb ||
ref.current.rfb._rfbConnectionState !== 'connected'
) {
return;
}
if (event.clipboardData === null) {
Expand Down Expand Up @@ -147,6 +150,12 @@ const sendCharacter = (
character: string,
ref: React.RefObject<VncScreenHandle>
) => {
if (
!ref.current?.rfb ||
ref.current.rfb._rfbConnectionState !== 'connected'
) {
return;
}
const actualCharacter = character[0];
const requiresShift = actualCharacter.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);

Expand Down
Loading

0 comments on commit b62843b

Please sign in to comment.