mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
✨ Protect external links
This commit is contained in:
parent
9e5166d991
commit
fe4cab3a9e
@ -399,7 +399,9 @@
|
|||||||
([uri]
|
([uri]
|
||||||
(open-new-window uri "_blank"))
|
(open-new-window uri "_blank"))
|
||||||
([uri name]
|
([uri name]
|
||||||
(js/window.open (str uri) name)))
|
;; Warning: need to protect against reverse tabnabbing attack
|
||||||
|
;; https://www.comparitech.com/blog/information-security/reverse-tabnabbing/
|
||||||
|
(.open js/window (str uri) name "noopener,noreferrer")))
|
||||||
|
|
||||||
(defn browser-back
|
(defn browser-back
|
||||||
[]
|
[]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user