aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 15:14:46 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 15:14:46 +0400
commitc0b7a87e6aaa8dd90604d470ea6558ff53691e85 (patch)
tree10e5cfcb7160e48c595b11daa999d976e86e56e6 /src/url.c
parentdec1abd6e4582b74b658db72a7071ce098d1c9e5 (diff)
downloadrspamd-c0b7a87e6aaa8dd90604d470ea6558ff53691e85.tar.gz
rspamd-c0b7a87e6aaa8dd90604d470ea6558ff53691e85.zip
* Reopen log file by USR1 signal
* Add reopenlog method to FreeBSD rc script
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index 1ecc9c4f0..2c508ebe1 100644
--- a/src/url.c
+++ b/src/url.c
@@ -49,7 +49,12 @@ struct _proto {
unsigned int need_ssl:1;
};
-static const char *text_url = "((https?|ftp)://)?" "(\\b(?<![.\\@A-Za-z0-9-])" "(?: [A-Za-z0-9][A-Za-z0-9-]*(?:\\.[A-Za-z0-9-]+)*\\." "(?i:com|net|org|biz|edu|gov|info|name|int|mil|aero|coop|jobs|mobi|museum|pro|travel" "|cc|[rs]u|uk|ua|by|de|jp|fr|fi|no|no|ca|it|ro|cn|nl|at|nu|se" "|[a-z]{2}" "(?(1)|(?=/)))" "(?!\\w)" "|(?:\\d{1,3}\\.){3}\\d{1,3}(?(1)|(?=[/:]))" /* ip in dotted view */
+static const char *text_url = "((https?|ftp)://)?"
+ "(\\b(?<![.\\@A-Za-z0-9-])" "(?: [A-Za-z0-9][A-Za-z0-9-]*(?:\\.[A-Za-z0-9-]+)*\\."
+ "(?i:com|net|org|biz|edu|gov|info|name|int|mil|aero|coop|jobs|mobi|museum|pro|travel"
+ "|cc|[rs]u|uk|ua|by|de|jp|fr|fi|no|no|ca|it|ro|cn|nl|at|nu|se"
+ "|[a-z]{2}" "(?(1)|(?=/)))" "(?!\\w)"
+ "|(?:\\d{1,3}\\.){3}\\d{1,3}(?(1)|(?=[/:]))" /* ip in dotted view */
"|\\d{5,20}(?(1)|(?=[/:]))" /* ip in numeric view */
")" "(?::\\d{1,5})?" /* port */
"(?!\\.\\w)" /* host part ended, no more of this further on */