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
fix(route/wikipedia): escape link targets in current events
Link targets come from the wikitext, so any editor controls them, and they
went straight into an href. sanitizeHtml runs before the tags exist and does
not escape double quotes, so a target could close the attribute and add its
own, or supply a javascript: link.
Build the URL through encodeURI and linkify external URLs only when http(s).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments