diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/VNDBUtil.pm | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,6 @@ 2.16 - ? - VNDBUtil::bb2html(): Fixed bug when the string starts with a VNDBID + - VNDBUtil::bb2html(): Fixed bug with lowercasing all [url=..] URLs - Fixed perl warning on /v/search redirect without search query 2.15 - 2010-12-15 diff --git a/lib/VNDBUtil.pm b/lib/VNDBUtil.pm index f28ff7f7..f5650d6d 100644 --- a/lib/VNDBUtil.pm +++ b/lib/VNDBUtil.pm @@ -100,8 +100,8 @@ sub bb2html { $result .= '</a>'; pop @open; next; - } elsif($tag =~ s{\[url=((https?://|/)[^\]>]+)\]}{<a href="$1" rel="nofollow">}i) { - $result .= $tag; + } elsif($match =~ s{\[url=((https?://|/)[^\]>]+)\]}{<a href="$1" rel="nofollow">}i) { + $result .= $match; push @open, 'url'; next; } |