fix target _blank vulnerability
This commit is contained in:
parent
635132ef23
commit
ccdbbf58ec
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue