mirror of
https://github.com/tursom/typecho-plugin-Access.git
synced 2025-03-15 03:40:31 +08:00
修复不能自动识别未知爬虫版本号的问题
This commit is contained in:
parent
40b5f862c2
commit
9d6e7f1501
@ -137,7 +137,7 @@ class Access_Parser
|
||||
foreach ($this->bots as $val) {
|
||||
if (($val == 'Bot' || $val == 'Spider')
|
||||
&& (preg_match('#([a-zA-Z0-9]+(bot|spider))[ /]*([0-9.]*)#i', $ua, $matches))) {
|
||||
$this->currentBot = $matches[1] . $matches[2];
|
||||
$this->currentBot = $matches[1] . ' ' . $matches[3];
|
||||
return true;
|
||||
}
|
||||
$str = $this->filter($val);
|
||||
|
Loading…
Reference in New Issue
Block a user