mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
docsettings fix no name file (#8517)
When trying to open/delete a supported document with empty name (eg .txt) got an error ./luajit: frontend/docsettings.lua:118: attempt to concatenate a nil value
This commit is contained in:
@@ -115,7 +115,7 @@ function DocSettings:open(docfile)
|
||||
-- can handle two files with only different suffixes.
|
||||
new.sidecar_file = self:getSidecarFile(docfile)
|
||||
new.legacy_sidecar_file = sidecar.."/"..
|
||||
docfile:match("([^%/]+%..+)")..".lua"
|
||||
ffiutil.basename(docfile)..".lua"
|
||||
end
|
||||
|
||||
local candidates = {}
|
||||
|
||||
Reference in New Issue
Block a user