Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-21 16:55:49 +00:00

nfqws2, zapret-lib: always treat blobs, % and # as string

This commit is contained in:
bol-van
2026-02-17 19:21:44 +03:00
parent 5ced6811c8
commit 1b1c8ddb38
2 changed files with 7 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ function apply_arg_prefix(desync)
local c = string.sub(v,1,1)
if c=='#' then
local blb = blob(desync,string.sub(v,2))
desync.arg[a] = (type(blb)=='string' or type(blb)=='table') and #blb or 0
desync.arg[a] = tostring((type(blb)=='string' or type(blb)=='table') and #blb or 0)
elseif c=='%' then
desync.arg[a] = blob(desync,string.sub(v,2))
elseif c=='\\' then
@@ -545,6 +545,7 @@ function blob(desync, name, def)
error("blob '"..name.."' unavailable")
end
end
blob = tostring(blob)
end
return blob
end