Skip to content

Commit a6d005d

Browse files
AMoo-MikiAjay Gupta
authored andcommitted
[Legacy Maps Plugin] Prevent reverse-tabnabbing (opensearch-project#2540)
Signed-off-by: Miki <[email protected]> Signed-off-by: Miki <[email protected]> Signed-off-by: Ajay Gupta <[email protected]>
1 parent 2c253de commit a6d005d

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)