From 8227dbc168af39c46147619a54c01f25c8e7f070 Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 13 Sep 2003 04:22:37 +0000 Subject: skip empty filename git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- staticweb/manbuilder.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}]; -- cgit v1.2.3