summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-13 12:22:37 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-13 12:22:37 +0800
commit00ed55898539c02c4a4f6031d565c5625b591dc1 (patch)
tree318c93a30acd8e4a5fe154da0f76b9447fddb7eb
parenteb2ca254156a025b4f08e850374b7541f4be98d6 (diff)
downloadpttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.tar
pttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.tar.gz
pttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.tar.bz2
pttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.tar.lz
pttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.tar.xz
pttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.tar.zst
pttbbs-00ed55898539c02c4a4f6031d565c5625b591dc1.zip
skip empty filename
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xpttbbs/staticweb/manbuilder.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/staticweb/manbuilder.pl b/pttbbs/staticweb/manbuilder.pl
index c135920a..f3b18cf4 100755
--- a/pttbbs/staticweb/manbuilder.pl
+++ b/pttbbs/staticweb/manbuilder.pl
@@ -56,8 +56,8 @@ sub build($$)
tie %bfh, 'BBSFileHeader', $basedir;
foreach( 0..($bfh{num} - 1) ){
next if( $bfh{"$_.filemode"} & 32 ); # skip HIDDEN
+ next if( !($fn = $bfh{"$_.filename"}) ); # skip empty filename
- $fn = $bfh{"$_.filename"};
if( $bfh{"$_.isdir"} ){
push @tdir, ["$doffset/$fn/", # ¥Ø¿ýµ²§À­n¥[ /
$db{"title-$doffset/$fn/"} = $bfh{"$_.title"}];