diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Markdown.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Markdown.pm b/Bugzilla/Markdown.pm index 353c2ff6a..ed5608025 100644 --- a/Bugzilla/Markdown.pm +++ b/Bugzilla/Markdown.pm @@ -230,8 +230,8 @@ sub _DoAnchors { $url =~ s@</a$@@; } - # Limit URL to HTTP/HTTPS links - $url = "http://$url" unless $url =~ m!^https?://!i; + my $safe_url_regexp = Bugzilla::Template::SAFE_URL_REGEXP(); + $url = "http://$url" unless $url =~ /^$safe_url_regexp$/; $self->_GenerateAnchor($whole_match, $link_text, undef, $url, $title); }xsge; |