fix target _blank vulnerability

This commit is contained in:
Abderahman88 2022-01-13 21:52:25 +01:00
parent 635132ef23
commit ccdbbf58ec
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ const AdvancedPageProperties: React.FunctionComponent<IAdvancedPagePropertiesPro
case "URL": case "URL":
const url_parts = val.split(","); const url_parts = val.split(",");
return ( 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": case "Thumbnail":
return ( return (