mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Remove undef check from SanitizeModule
This commit is contained in:
parent
4e5dbf4718
commit
e21a9e642d
@ -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;
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user