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.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Some security issue found in scan.
Joseph Milazzo44c2af88ea73
diff --git a/API/Parser/Parser.cs b/API/Parser/Parser.csindex aad2bd557..af0383a81 100644--- a/API/Parser/Parser.cs+++ b/API/Parser/Parser.cs@@ -403,20 +403,17 @@ namespace API.Parserpublic static bool IsArchive(string filePath){- var fileInfo = new FileInfo(filePath);- return MangaFileRegex.IsMatch(fileInfo.Extension);+ return MangaFileRegex.IsMatch(Path.GetExtension(filePath));}public static bool IsImage(string filePath){- var fileInfo = new FileInfo(filePath);- return ImageRegex.IsMatch(fileInfo.Extension);+ return ImageRegex.IsMatch(Path.GetExtension(filePath));}public static bool IsXml(string filePath){- var fileInfo = new FileInfo(filePath);- return XmlRegex.IsMatch(fileInfo.Extension);+ return XmlRegex.IsMatch(Path.GetExtension(filePath));}public static float MinimumNumberFromRange(string range)