diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-03 14:50:54 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-03 14:50:54 +0800 |
commit | b28691c2d7446e6194f180573c954dff0b55ed6c (patch) | |
tree | c3dfd59a31f4473f9f1fda812f426c714b5a3701 /staticweb/manbuilder.pl | |
parent | 2934f2e18f04ee139dd12ff9bfaa924f948ffa55 (diff) | |
download | pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.tar pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.tar.gz pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.tar.bz2 pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.tar.lz pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.tar.xz pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.tar.zst pttbbs-b28691c2d7446e6194f180573c954dff0b55ed6c.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1004 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'staticweb/manbuilder.pl')
-rwxr-xr-x | staticweb/manbuilder.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/staticweb/manbuilder.pl b/staticweb/manbuilder.pl index ecb0972e..3ae5b22a 100755 --- a/staticweb/manbuilder.pl +++ b/staticweb/manbuilder.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: manbuilder.pl,v 1.1 2003/07/03 05:49:45 in2 Exp $ +# $Id: manbuilder.pl,v 1.2 2003/07/03 06:50:54 in2 Exp $ use lib '/home/bbs/bin/'; use strict; use OurNet::FuzzyIndex; @@ -43,7 +43,14 @@ sub build($$) } else{ push @tdir, ["$doffset/$fn", $bfh{"$_.title"}]; - $db{"$doffset/$fn"} = $bfh{"$_.content"}; + my $c = $bfh{"$_.content"}; + $c =~ s/\</</gs; + $c =~ s/\>/>/gs; + $c =~ s/\"/"/gs; + $c =~ s/\'/'/gs; + $c =~ s/ / /gs; + $c =~ s/\n/<br \/>\n/gs; + $db{"$doffset/$fn"} = $c; } } $db{"$doffset/"} = $serial->serialize(\@tdir); |