Issue: #2090
Closes: #2090
url->flags |= RSPAMD_URL_FLAG_OBSCURED;
}
+ if (no_prefix) {
+ url->flags |= RSPAMD_URL_FLAG_SCHEMALESS;
+ }
+
decoded = url->string;
decoded_len = url->urllen;
rc = rspamd_url_parse (url, cb->url_str, strlen (cb->url_str), pool);
if (rc == URI_ERRNO_OK && url->hostlen > 0) {
+ if (m.add_prefix) {
+ url->flags |= RSPAMD_URL_FLAG_SCHEMALESS;
+ }
+
if (cb->func) {
cb->func (url, cb->start - text, cb->fin - text, cb->funcd);
}
RSPAMD_URL_FLAG_MISSINGSLASHES = 1 << 11,
RSPAMD_URL_FLAG_IDN = 1 << 12,
RSPAMD_URL_FLAG_HAS_PORT = 1 << 13,
- RSPAMD_URL_FLAG_HAS_USER = 1 << 12,
+ RSPAMD_URL_FLAG_HAS_USER = 1 << 14,
+ RSPAMD_URL_FLAG_SCHEMALESS = 1 << 15,
};
struct rspamd_url_tag {