mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-03-09 06:38:52 +00:00
fix target _blank vulnerability
This commit is contained in:
parent
635132ef23
commit
ccdbbf58ec
@ -131,7 +131,7 @@ const AdvancedPageProperties: React.FunctionComponent<IAdvancedPagePropertiesPro
|
||||
case "URL":
|
||||
const url_parts = val.split(",");
|
||||
return (
|
||||
<span className={styles.urlValue}><a href={url_parts[0]} target="_blank" style={{color: semanticColors.link}}>{url_parts[1]}</a></span>
|
||||
<span className={styles.urlValue}><a href={url_parts[0]} target="_blank" rel="noopener noreferrer" style={{color: semanticColors.link}}>{url_parts[1]}</a></span>
|
||||
);
|
||||
case "Thumbnail":
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user