diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-10 00:39:07 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-10 00:39:07 +0100 |
commit | 49410cd7cbf44be774f421db0d314c015d730796 (patch) | |
tree | 3f376bd8d0f1da574a619a7f3725207f089c553d /sbofind | |
parent | 66cb381834b72f252fdfe5eac5c11bf54a2af002 (diff) | |
download | sbotools-49410cd7cbf44be774f421db0d314c015d730796.tar.xz |
sbofind: [LO] Escape the interpolated search string
Diffstat (limited to 'sbofind')
-rwxr-xr-x | sbofind | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }; } } |