summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xblog/blog.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/blog/blog.pl b/blog/blog.pl
index 3f851d3b..5362f4b5 100755
--- a/blog/blog.pl
+++ b/blog/blog.pl
@@ -425,7 +425,7 @@ sub applyfilter($$)
}
elsif( /^wiki$/i ){
my $t;
- $c =~ s|\[(http://\S+) (.*?)\]|\[ <a href=\"$1\">$2</a> \]|gi;
+ $c =~ s|\[(http://\S+) (.*?)\]| <a href=\"$1\">\[$2\]</a> |gi;
$c =~ s|([^\>\"])(http://\S+\.(:?jpg\|gif\|png\|bmp))|$1<a href=\"$2\"><img src=\"$2\" alt="$2" style="border:0;"></a>|gsi;
$c =~ s|([^\>\"])(http://\S+)|$1<a href=\"$2\">$2</a>|gsi;
$c =~ s|\(\((.*?)\)\)|utf8dump($1, $th{wikibase})|gsie;