mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
Update ZLFile.cpp
the container.xml file cause unable to parse epub file epub文件结构导致无法解析问题
This commit is contained in:
parent
e83aec9f94
commit
1ae9a03a55
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ ZLFile::ZLFile() : myMimeTypeIsUpToDate(true), myInfoIsFilled(true) {
|
|||
}
|
||||
|
||||
ZLFile::ZLFile(const std::string &path, const std::string &mimeType) : myPath(path), myMimeType(mimeType), myMimeTypeIsUpToDate(!mimeType.empty()), myInfoIsFilled(false) {
|
||||
std::string::size_type position = myPath.find(":./");
|
||||
if (position != myPath.npos){
|
||||
myPath.replace(position, 3, ":");
|
||||
}
|
||||
ZLFSManager::Instance().normalize(myPath);
|
||||
{
|
||||
std::size_t index = ZLFSManager::Instance().findLastFileNameDelimiter(myPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue