MV_DEFAULT_SEARCH_DB — (partly documented)
Interchange 5.9.0:
Source: lib/Vend/Scan.pm
Line 519 (context shows lines 509-523 in perform_search():416)
SEARCH: {
$options{mv_return_all} = 1
if $options{mv_dict_look} and ! $options{mv_searchspec};
if (defined $pre_made) {
$q = $pre_made;
@{$q}{keys %options} = (values %options);
}
elsif (
! $options{mv_searchtype} && $::Variable->{MV_DEFAULT_SEARCH_DB}
or $options{mv_searchtype} =~ /db|sql/i
)
{
$q = new Vend::DbSearch %options;
Source: lib/Vend/Scan.pm
Line 889 (context shows lines 879-893 in _file_security():879)
sub _file_security {
my ($junk, $param, $passed) = @_;
$passed = [] unless $passed;
my(@files) = grep /\S/, split /\s*[,\0]\s*/, $param, -1;
for(@files) {
my $ok = allowed_file($_);
if(!$ok) {
$ok = 1 if $_ eq $::Variable->{MV_SEARCH_FILE};
$ok = 1 if $::Scratch->{$_};
}
if(/^\w+$/ and ! $::Variable->{MV_DEFAULT_SEARCH_DB}) {
$_ = $Vend::Cfg->{Database}{$_}{file}
if defined $Vend::Cfg->{Database}{$_};
}
if ($ok and $Vend::Cfg->{NoSearch} and /$Vend::Cfg->{NoSearch}/) {