summaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-02 19:33:25 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-02 19:33:25 +0400
commit7843c9479038c38395886521d32390e6867fac1e (patch)
treef6aed60aa471f2d9c387789a7f03dbbe3c55318d /src/url.c
parent7bae787900fea17ca82393886217c6287d7e8cea (diff)
parent21844599898aa8b44df6425914995e1b7214ff52 (diff)
downloadrspamd-7843c9479038c38395886521d32390e6867fac1e.tar.gz
rspamd-7843c9479038c38395886521d32390e6867fac1e.zip
* Forgot to merge
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/url.c b/src/url.c
index cc58a2caf..221b8ef63 100644
--- a/src/url.c
+++ b/src/url.c
@@ -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;