diff options
author | Andrew Lewis <nerf@judo.za.org> | 2020-11-16 20:13:03 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2020-11-16 20:13:03 +0200 |
commit | 68badebdac453aef0f8bc5af96e9a289aefc02e5 (patch) | |
tree | b746ea582bd0e32c8a85af93c264ad2d8158045b /lualib/lua_content/pdf.lua | |
parent | 36963c3fa3b053812dbb9abea386b27a78a5d062 (diff) | |
download | rspamd-68badebdac453aef0f8bc5af96e9a289aefc02e5.tar.gz rspamd-68badebdac453aef0f8bc5af96e9a289aefc02e5.zip |
[Minor] rspamd_text:byte() metamethod
Diffstat (limited to 'lualib/lua_content/pdf.lua')
-rw-r--r-- | lualib/lua_content/pdf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index 141a07a5f..11d5cab46 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -954,7 +954,7 @@ local function attach_pdf_streams(task, input, pdf) end -- Strip the first \n while first < last do - local chr = input:at(first) + local chr = input:byte(first) if chr ~= 13 and chr ~= 10 then break end first = first + 1 end |