You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the code rejects links that .startswith("javascript:"). This is blacklisting. Blacklisting is bad.
We'll want to whitelist only things like http://, https://, and data:// with specific mimetypes.
Currently the code rejects links that
.startswith("javascript:")
. This is blacklisting. Blacklisting is bad.We'll want to whitelist only things like
http://
,https://
, anddata://
with specific mimetypes.Consider:
<a href="javaScript:alert('gotcha')">click here</a>
.The text was updated successfully, but these errors were encountered: