summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/VNDBUtil.pm2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a4f75fa5..6c7e30a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2.14 - 2010-12-15
+2.16 - ?
+ - VNDBUtil::bb2html(): Fixed bug when the string starts with a VNDBID
+
+2.15 - 2010-12-15
- Removed expand/collapse from history browser and /u+/posts and switched to
a combined view
- Added a "general discussions" board
diff --git a/lib/VNDBUtil.pm b/lib/VNDBUtil.pm
index 1d4fd003..f28ff7f7 100644
--- a/lib/VNDBUtil.pm
+++ b/lib/VNDBUtil.pm
@@ -114,7 +114,7 @@ sub bb2html {
next;
}
# id
- if(($id || $exid) && substr($raw, $last-1-length($match), 1) !~ /[\w]/ && substr($raw, $last, 1) !~ /[\w]/) {
+ if(($id || $exid) && (!$result || substr($raw, $last-1-length($match), 1) !~ /[\w]/) && substr($raw, $last, 1) !~ /[\w]/) {
$length += length $match;
last if $maxlength && $length > $maxlength;
$result .= sprintf '<a href="/%s">%1$s</a>', $match;