From 68badebdac453aef0f8bc5af96e9a289aefc02e5 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 16 Nov 2020 20:13:03 +0200 Subject: [Minor] rspamd_text:byte() metamethod --- lualib/lua_content/pdf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lualib/lua_content/pdf.lua') 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 -- cgit v1.2.3