Skip to content

Commit d4815b3

Browse files
committed
[Legacy Maps Plugin] Prevent reverse-tabnabbing
Signed-off-by: Miki <[email protected]>
1 parent 82eb0e8 commit d4815b3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010

1111
### 🛡 Security
1212

13+
* [Legacy Maps Plugin] Prevent reverse-tabnabbing ([#2540](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2540))
14+
1315
### 📈 Features/Enhancements
1416

1517
- [MD] Support legacy client for data source ([#2204](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2204))

src/plugins/maps_legacy/public/map/map_messages.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import React, { Fragment } from 'react';
3333
import ReactDOM from 'react-dom';
3434
import { FormattedMessage } from '@osd/i18n/react';
35-
import { EuiSpacer, EuiButtonEmpty, EuiEmptyPrompt } from '@elastic/eui';
35+
import { EuiSpacer, EuiButtonEmpty, EuiEmptyPrompt, EuiLink } from '@elastic/eui';
3636
import { toMountPoint } from '../../../opensearch_dashboards_react/public';
3737

3838
export const createRegionDeniedWarning = (function () {
@@ -112,9 +112,12 @@ export const createZoomWarningMsg = (function () {
112112
Please go to { wms } for more information."
113113
values={{
114114
wms: (
115-
<a target="_blank" href="https://opensearch.org/docs/latest/dashboards/maptiles/">
115+
<EuiLink
116+
target="_blank"
117+
href="https://opensearch.org/docs/latest/dashboards/maptiles/"
118+
>
116119
{`Custom WMS Configuration`}
117-
</a>
120+
</EuiLink>
118121
),
119122
}}
120123
/>

0 commit comments

Comments
 (0)