Harden obj name restriction

This commit is contained in:
mid 2024-06-11 16:40:33 +03:00
parent c0846a9b52
commit 9b3643e82d

2
db.lua
View File

@ -192,7 +192,7 @@ local function testobjfilename(fname)
end end
end end
return not fname:find"[/\\\0-\31%<%>%:%\"%|%?%*]" and #fname <= 56 return not fname:find"[/\\\0-\31%<%>%:%\"%|%?%*%[%]%%]" and #fname <= 56
end end
local function urltophysical(p) local function urltophysical(p)