# We don't html escape here because we escape above;
# wierd terminators are because of that
$body =~ s{((?:ftp|http|https|svn|ftps|rsync)://[\S~-]+?/?) # Url
- ((?:\>\;)?[)]?(?:'|\&\#39\;)?[:.\,]?(?:\s|$)) # terminators
+ ((?:\>\;)?[)]?(?:'|\&\#39\;|\"\;)?[:.\,]?(?:\s|$)) # terminators
}{<a href=\"$1\">$1</a>$2}gox;
# Add links to bug closures
$body =~ s[((?:closes|see):\s* # start of closed/referenced bugs
#412815). Thanks to martin krafft, Paul Wise, and Julien Valroff.
* Fix XSS in version.cgi, thanks to Vlad Constantin (Closes: #762967).
* Add affects to bugreport.cgi package info header (Closes: #609687).
+ * Stop URLs at " too. Thanks to Vincent Lefevre (Closes: #766354).
[Thanks to Arnout Engelen: ]
* Add Homepage (closes: #670555).