mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
NewsPanel: Fixed XSS issue when rendering rss links (#27612)
This commit is contained in:
@@ -77,7 +77,7 @@ export class NewsPanel extends PureComponent<Props, State> {
|
||||
{news.map((item, index) => {
|
||||
return (
|
||||
<div key={index} className={styles.item}>
|
||||
<a href={item.link} target="_blank">
|
||||
<a href={textUtil.sanitizeUrl(item.link)} target="_blank">
|
||||
<div className={styles.title}>{item.title}</div>
|
||||
<div className={styles.date}>{dateTimeFormat(item.date, { format: 'MMM DD' })} </div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user