From 49410cd7cbf44be774f421db0d314c015d730796 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Thu, 10 Dec 2015 00:39:07 +0100 Subject: sbofind: [LO] Escape the interpolated search string --- sbofind | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; } } -- cgit v1.2.3