aboutsummaryrefslogtreecommitdiff
path: root/sbofind
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-10 00:39:07 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-10 00:39:07 +0100
commit49410cd7cbf44be774f421db0d314c015d730796 (patch)
tree3f376bd8d0f1da574a619a7f3725207f089c553d /sbofind
parent66cb381834b72f252fdfe5eac5c11bf54a2af002 (diff)
downloadsbotools-49410cd7cbf44be774f421db0d314c015d730796.tar.xz
sbofind: [LO] Escape the interpolated search string
Diffstat (limited to 'sbofind')
-rwxr-xr-xsbofind2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbofind b/sbofind
index 22cff8a..8daf9e4 100755
--- 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 };
}
}