mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
Improve check_wildcard() regex
Was detecting a commented out #/etc/nginx/conf.d/* as existing and therefore not doing required blocker includes
This commit is contained in:
parent
c2131f6579
commit
08fce8e496
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ longest_str() {
|
|||
|
||||
check_wildcard() {
|
||||
local file=$1 dir=$(basename $2)
|
||||
local check="$(grep -E "include[[:alnum:] /]+$dir/\*" $file)"
|
||||
local check="$(grep -E "^[^#]+include[[:alnum:] /]+$dir/\*" $file)"
|
||||
echo $check
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue