diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-05 14:16:15 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-05 14:16:15 +0800 |
commit | a8f934deec819d6f3616a653b125902d01a8f9b7 (patch) | |
tree | 70fd9be82c61066c8cd8dacd7495c8c0bc710316 | |
parent | 376f3adee774bf822777f3f7369194ea19f00a17 (diff) | |
download | pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.tar pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.tar.gz pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.tar.bz2 pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.tar.lz pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.tar.xz pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.tar.zst pttbbs-a8f934deec819d6f3616a653b125902d01a8f9b7.zip |
add ~ to http/ftp pattern
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1027 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-x | pttbbs/staticweb/man.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pttbbs/staticweb/man.pl b/pttbbs/staticweb/man.pl index 189df02e..4f20889c 100755 --- a/pttbbs/staticweb/man.pl +++ b/pttbbs/staticweb/man.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: man.pl,v 1.6 2003/07/05 05:40:05 in2 Exp $ +# $Id: man.pl,v 1.7 2003/07/05 06:16:15 in2 Exp $ use CGI qw/:standard/; use lib qw/./; use LocalVars; @@ -86,8 +86,8 @@ sub articlemode $th{content} = $db{$fpath}; $th{content} =~ s/\033\[.*?m//g; - $th{content} =~ s|(http://[\w\-\.\:\/\,@\?=]+)|<a href="$1">$1</a>|gs; - $th{content} =~ s|(ftp://[\w\-\.\:\/\,@]+)|<a href="$1">$1</a>|gs; + $th{content} =~ s|(http://[\w\-\.\:\/\,@\?=~]+)|<a href="$1">$1</a>|gs; + $th{content} =~ s|(ftp://[\w\-\.\:\/\,@~]+)|<a href="$1">$1</a>|gs; $th{content} =~ s|§å½ð½ð¨ß|<a href="http://blog.ptt2.cc">§å½ð½ð¨ß</a>|gs; $th{content} =~ |