]> source.dussan.org Git - rspamd.git/commit
[Fix] Fix a failure calcuating URL reputation. 3121/head
authorPhil Ross <phil.ross@gmail.com>
Fri, 25 Oct 2019 17:47:43 +0000 (18:47 +0100)
committerPhil Ross <phil.ross@gmail.com>
Fri, 25 Oct 2019 17:47:43 +0000 (18:47 +0100)
commit3731797bf86bda905b6db44ada175fbed96b3d7a
tree589bbf472aa5fcb1fb3479c58f1c0667689f51ec
parent0d916d0c7a636fcd72d80f73193d8543a1e6dcd3
[Fix] Fix a failure calcuating URL reputation.

`url_reputation_filter` was attempting to lookup the token key returned
in the `get_token` callback in an integer-indexed table of requests.
Change to looking up the request by its index.

Commit 73d2cee changed from using `gen_url_queries` to
`lua_util.extract_specific_urls` in the assignment of `requests`.
The latter just returns a list of URLs. The former returns the TLD along
with the number of hits. The URL score calculation uses the number of
hits. Revert to using `gen_url_queries`.
src/plugins/lua/reputation.lua