diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/VNDBUtil.pm | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,8 @@ -2.16 - ? +2.16 - 2011-01-02 - 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 + - Bugfix: Don't allow others to open /u+/votes when show_list is false - Don't allow NULL for rr.minage and use -1 for unknown - Check for editsum = description and give an easier to understand error - RFC-01: Added vnlists feature and removed rlists.vstat option 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; } |