diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-05-14 09:19:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-05-14 09:19:00 +0200 |
commit | 70f57c08e38c62a099bf3e219da08e537ad72ced (patch) | |
tree | a417a8c8dca4d682f206911c24d21f92e3bcd1f3 /tex/context/base/data-zip.lua | |
parent | af4ff2510c2a18374dec07abe1742e49dd99fc72 (diff) | |
download | context-70f57c08e38c62a099bf3e219da08e537ad72ced.tar.gz |
beta 2012.05.14 09:19
Diffstat (limited to 'tex/context/base/data-zip.lua')
-rw-r--r-- | tex/context/base/data-zip.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tex/context/base/data-zip.lua b/tex/context/base/data-zip.lua index 6a50d2aa9..1d2f2d4f6 100644 --- a/tex/context/base/data-zip.lua +++ b/tex/context/base/data-zip.lua @@ -31,6 +31,18 @@ local archives = zip.archives zip.registeredfiles = zip.registeredfiles or { } local registeredfiles = zip.registeredfiles +local limited = false + +directives.register("system.inputmode", function(v) + if not limited then + local i_limiter = io.i_limiter(v) + if i_limiter then + zip.open = i_limiter.protect(zip.open) + limited = true + end + end +end) + local function validzip(str) -- todo: use url splitter if not find(str,"^zip://") then return "zip:///" .. str |