Open izhoubin opened 5 years ago
navigation_reader.dart:
String tocFileEntryPath = ZipPathUtils.combine(contentDirectoryPath, tocManifestItem.Href);
zip_path_utils.dart:
static String combine(String directory, String fileName) { if (directory == null || directory == "") { return fileName; } else { return directory + "/" + fileName; } } }
If the tocManifestItem.Href is a ralative path such as "./toc.ncx",the method combine() will return wrong path like OEBPS/./toc.ncx,and error occurred.
Ralative path should be considered in method combine.
Thanks.
navigation_reader.dart:
zip_path_utils.dart:
If the tocManifestItem.Href is a ralative path such as "./toc.ncx",the method combine() will return wrong path like OEBPS/./toc.ncx,and error occurred.
Ralative path should be considered in method combine.
Thanks.