summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-09 17:07:43 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-09 17:07:43 +0800
commitfb11341539e36c7b3d4f7b49b5eef61fb8957ed1 (patch)
treeefe48fc3fb0cc264c2bb6733762d07a2246281d2
parent6da62f6e613a26e48c090b87e78e75363f616284 (diff)
downloadpttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.tar
pttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.tar.gz
pttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.tar.bz2
pttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.tar.lz
pttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.tar.xz
pttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.tar.zst
pttbbs-fb11341539e36c7b3d4f7b49b5eef61fb8957ed1.zip
fix wiki replace pattern
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1736 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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;