|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
|
* @function url.init(tld_file) |
|
|
* @function url.init(tld_file) |
|
|
* Initialize url library if not initialized yet by Rspamd |
|
|
* Initialize url library if not initialized yet by Rspamd |
|
|
* @param {string} tld_file for url library |
|
|
|
|
|
|
|
|
* @param {string} tld_file path to effective_tld_names.dat file (public suffix list) |
|
|
* @return nothing |
|
|
* @return nothing |
|
|
*/ |
|
|
*/ |
|
|
static gint |
|
|
static gint |
|
|
|
|
|
|
|
|
* - `unnormalised`: URL has some unicode unnormalities |
|
|
* - `unnormalised`: URL has some unicode unnormalities |
|
|
* - `zw_spaces`: URL has some zero width spaces |
|
|
* - `zw_spaces`: URL has some zero width spaces |
|
|
* - `url_displayed`: URL has some other url-like string in visible part |
|
|
* - `url_displayed`: URL has some other url-like string in visible part |
|
|
|
|
|
* - `image`: URL is from src attribute of img HTML tag |
|
|
* @return {table} URL flags |
|
|
* @return {table} URL flags |
|
|
*/ |
|
|
*/ |
|
|
#define PUSH_FLAG(fl, name) do { \ |
|
|
#define PUSH_FLAG(fl, name) do { \ |