Update Current.php
This commit is contained in:
parent
2e8ec1e4fe
commit
d8aa723425
1 changed files with 9 additions and 1 deletions
|
@ -165,7 +165,13 @@ class Current extends Action
|
|||
|
||||
if (
|
||||
0 === $status
|
||||
&& ! \str_starts_with($agent, 'Mozilla/')
|
||||
&& (
|
||||
! \str_starts_with($agent, 'Mozilla/')
|
||||
|| (
|
||||
false === \strpos($agent, ' Gecko')
|
||||
&& false === \strpos($agent, ' MSIE ')
|
||||
)
|
||||
)
|
||||
&& ! \str_starts_with($agent, 'Opera/')
|
||||
) {
|
||||
$status = 1;
|
||||
|
@ -176,12 +182,14 @@ class Current extends Action
|
|||
}
|
||||
|
||||
$reg = [
|
||||
'%Mozilla\S+%',
|
||||
'%[^\w/.-]+%',
|
||||
'%(?:_| |-|\b)bot(?:_| |-|\b)%i',
|
||||
'%(?<=^|\s)[^a-zA-Z\s]{1,2}(?:\s|$)%',
|
||||
'%/\S*+\K.+%',
|
||||
];
|
||||
$rep = [
|
||||
'',
|
||||
' ',
|
||||
'',
|
||||
'',
|
||||
|
|
Loading…
Add table
Reference in a new issue