Skip to content

Commit

Permalink
fix: [M3-8424] - Fix CodeQL alerts for `DOM text reinterpreted as HTM…
Browse files Browse the repository at this point in the history
…L` (#11008)

* fix: [M3-8424] - Fix CodeQL alerts for `DOM text reinterpreted as HTML`

* Add changeset

* Remove unnecessary code generated by Copilot
  • Loading branch information
carrillo-erik authored Sep 27, 2024
1 parent e17a038 commit 8a771ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11008-fixed-1727297819528.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Fix CodeQL alerts for DOM text reinterpreted as HTML ([#11008](https://github.com/linode/manager/pull/11008))
4 changes: 3 additions & 1 deletion packages/manager/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const genOAuthEndpoint = (

const query = {
client_id: clientID,
redirect_uri: `${APP_ROOT}/oauth/callback?returnTo=${redirectUri}`,
redirect_uri: `${APP_ROOT}/oauth/callback?returnTo=${encodeURIComponent(
redirectUri
)}`,
response_type: 'token',
scope,
state: nonce,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { LOGIN_ROOT } from 'src/constants';
import { RevokeTokenSuccess, revokeToken } from 'src/session';
import { ThunkActionCreator } from 'src/store/types';
import { revokeToken } from 'src/session';
import { getEnvLocalStorageOverrides } from 'src/utilities/storage';

import { handleLogout as _handleLogout } from './authentication.actions';

import type { RevokeTokenSuccess } from 'src/session';
import type { ThunkActionCreator } from 'src/store/types';

/**
* Revokes auth token used to make HTTP requests
*
Expand Down

0 comments on commit 8a771ca

Please sign in to comment.