Remove undef check from SanitizeModule

This commit is contained in:
cls%seawood.org 2004-12-01 06:35:28 +00:00
parent 4e5dbf4718
commit e21a9e642d
2 changed files with 2 additions and 2 deletions

View File

@ -1370,7 +1370,7 @@ sub SanitizeMark {
sub SanitizeModule {
my ($module) = @_;
return "" if (!defined($module));
return $module if (!defined($module));
$module =~ s/\000/_NULL_/g;
$module =~ s/([A-Za-z])([\w\-\.\+]*).*/$1$2/;
return $module;

View File

@ -70,7 +70,7 @@ print "
<SELECT name='module' size=5>
";
my $inmod = &SanitizeModule($::FORM{module});
my $inmod = &SanitizeModule($::FORM{module}) || 'default';
my $Module = 'default';
if( $inmod eq 'all' || $inmod eq 'default' || $inmod eq '' ){
print "<OPTION SELECTED VALUE='all'>All Files in the Repository\n";