fix: reject TechLog protocol-relative links
This commit is contained in:
@@ -199,6 +199,7 @@ function isSafeLink(href: string): boolean {
|
||||
return false;
|
||||
}
|
||||
if (href.startsWith("#")) return true;
|
||||
if (href.startsWith("//")) return false;
|
||||
if (href.startsWith("/")) {
|
||||
try {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user