summaryrefslogtreecommitdiffstats
path: root/staticweb/manbuilder.pl
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
commit8227dbc168af39c46147619a54c01f25c8e7f070 (patch)
treefb58998ec5cf5ee73bd66364b0604d41cd5cbfe2 /staticweb/manbuilder.pl
parent090bb9fbe45c3352e92aa149a827fe6ac46a882d (diff)
downloadpttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.tar
pttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.tar.gz
pttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.tar.bz2
pttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.tar.lz
pttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.tar.xz
pttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.tar.zst
pttbbs-8227dbc168af39c46147619a54c01f25c8e7f070.zip
skip empty filename
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'staticweb/manbuilder.pl')
-rwxr-xr-xstaticweb/manbuilder.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/staticweb/manbuilder.pl b/staticweb/manbuilder.pl
index c135920a..f3b18cf4 100755
--- a/staticweb/manbuilder.pl
+++ b/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"}];