Fix regex
This commit is contained in:
parent
30a16ada2d
commit
eee9ab8305
|
@ -301,8 +301,8 @@ sub locationRulesInit {
|
|||
push @{ $class->tsv->{locationProtection}->{$vhost} }, $prot;
|
||||
push @{ $class->tsv->{locationRegexp}->{$vhost} }, qr/$url/;
|
||||
push @{ $class->tsv->{locationConditionText}->{$vhost} },
|
||||
$cond =~ /^\(\?#(.*?)\)/ ? $1
|
||||
: $cond =~ /^(.*?)##(.+)$/ ? $2
|
||||
$url =~ /^\(\?#(.*?)\)/ ? $1
|
||||
: $url =~ /^(.*?)##(.+)$/ ? $2
|
||||
: $url;
|
||||
$class->tsv->{locationCount}->{$vhost}++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user