diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-02 19:33:25 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-02 19:33:25 +0400 |
commit | 7843c9479038c38395886521d32390e6867fac1e (patch) | |
tree | f6aed60aa471f2d9c387789a7f03dbbe3c55318d /src/url.c | |
parent | 7bae787900fea17ca82393886217c6287d7e8cea (diff) | |
parent | 21844599898aa8b44df6425914995e1b7214ff52 (diff) | |
download | rspamd-7843c9479038c38395886521d32390e6867fac1e.tar.gz rspamd-7843c9479038c38395886521d32390e6867fac1e.zip |
* Forgot to merge
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,7 +65,7 @@ static const char *text_url = "((https?|ftp)://)?" "(?<![\\s>?!),.'\"\\]:])" "(?!@)" ")"; -static const char *html_url = "(?: src|href)=\"(" +static const char *html_url = "(?: src|href)=\"?(" "((https?|ftp)://)?" "(\\b(?<![.\\@A-Za-z0-9-])" "(?: [A-Za-z0-9][A-Za-z0-9-]*(?:\\.[A-Za-z0-9-]+)*\\." @@ -81,7 +81,7 @@ static const char *html_url = "(?: src|href)=\"(" "(?:[/?][;/?:@&=+\\$,[\\]\\-_.!~*'()A-Za-z0-9#%]*)?" /* path (&query) */ "(?<![\\s>?!),.'\"\\]:])" "(?!@)" -"))\""; +"))\"?"; static short url_initialized = 0; GRegex *text_re, *html_re; |