Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Add noreferrer noopener on links to external resources for epub reading (#318)

Joseph Milazzo8f4d42d13ffb
diff --git a/API/Services/BookService.cs b/API/Services/BookService.cs
index b0252f122..f36455ff6 100644
--- a/API/Services/BookService.cs
+++ b/API/Services/BookService.cs
@@ -89,7 +89,8 @@ namespace API.Services
}
else
{
- anchor.Attributes.Add("target", "_blank");
+ anchor.Attributes.Add("target", "_blank");
+ anchor.Attributes.Add("rel", "noreferrer noopener");
}
return;