diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-22 11:01:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-22 11:01:27 +0000 |
commit | f3633a995f251bba75faddc25097c92cb4d299af (patch) | |
tree | 6d4e8fbfc5bd9b74664a421397874ca226d9c375 | |
parent | 8f1898962c717ba0be3016eab22883d8c352c57f (diff) | |
download | rspamd-f3633a995f251bba75faddc25097c92cb4d299af.tar.gz rspamd-f3633a995f251bba75faddc25097c92cb4d299af.zip |
[Minor] Lua_content: Use oneline to normalise JS stuff
-rw-r--r-- | lualib/lua_content/pdf.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index 21f4b64b7..53625065a 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -507,9 +507,9 @@ local process_dict local function process_javascript(task, pdf, js) local rspamd_cryptobox_hash = require "rspamd_cryptobox_hash" if type(js) == 'string' then - js = rspamd_text.fromstring(js):exclude_chars('%n%c') + js = rspamd_text.fromstring(js):oneline() elseif type(js) == 'userdata' then - js = js:exclude_chars('%n%c') + js = js:oneline() else return nil end |