diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-01 17:19:25 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-01 17:19:25 +0800 |
commit | f3d9fbc518aefdee604a0eab9d10b73e980bdd48 (patch) | |
tree | d845311e728b4ee87abc2610faba9597d1c7497f /blog | |
parent | 9c5bee7dc907e7b359470f7479e7f00790af0920 (diff) | |
download | pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.tar pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.tar.gz pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.tar.bz2 pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.tar.lz pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.tar.xz pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.tar.zst pttbbs-f3d9fbc518aefdee604a0eab9d10b73e980bdd48.zip |
fix ubb
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@918 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'blog')
-rwxr-xr-x | blog/blog.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/blog/blog.pl b/blog/blog.pl index 0106db76..86469046 100755 --- a/blog/blog.pl +++ b/blog/blog.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: blog.pl,v 1.11 2003/06/01 08:44:07 in2 Exp $ +# $Id: blog.pl,v 1.12 2003/06/01 09:19:25 in2 Exp $ use CGI qw/:standard/; use LocalVars; use DB_File; @@ -249,8 +249,8 @@ sub applyfilter($$) $c =~ s/\n/<br \/>\n/gs; } elsif( /^ubb$/i ){ - $c =~ s|\[url\](.*?)\[/url\]|<a href='http://\1'>\1</a>|gsi; - $c =~ s|\[url=(.*?)\](.*?)\[/url\]|<a href='http://\1'>\2</a>|gsi; + $c =~ s|\[url\](.*?)\[/url\]|<a href='\1'>\1</a>|gsi; + $c =~ s|\[url=(.*?)\](.*?)\[/url\]|<a href='\1'>\2</a>|gsi; $c =~ s|\[email\](.*?)\[/email\]|<a href='mailto:\1'>\1</a>|gsi; $c =~ s|\[b\](.*?)\[/b\]|<b>\1</b>|gsi; $c =~ s|\[i\](.*?)\[/i\]|<i>\1</i>|gsi; |