commit 49410cd7cbf44be774f421db0d314c015d730796
parent 66cb381834b72f252fdfe5eac5c11bf54a2af002
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Thu, 10 Dec 2015 00:39:07 +0100
sbofind: [LO] Escape the interpolated search string
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbofind b/sbofind
@@ -93,7 +93,7 @@ sub perform_search {
opendir(my $dh, $config{LOCAL_OVERRIDES});
while (my $dir = readdir($dh)) {
next if $local{$dir};
- if ($dir =~ /$search/) {
+ if ($dir =~ /\Q$search\E/) {
push @findings, {name => $dir, location => "$config{LOCAL_OVERRIDES}/$dir", local => 1 };
}
}