projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8eba2
)
add knowledge about the Heritrix bot
author
robert
<robert>
Thu, 3 May 2007 10:19:53 +0000
(10:19 +0000)
committer
robert
<robert>
Thu, 3 May 2007 10:19:53 +0000
(10:19 +0000)
include/classes/useragent.php-class
patch
|
blob
|
blame
|
history
diff --git
a/include/classes/useragent.php-class
b/include/classes/useragent.php-class
index 94a17529da81a173d6753f21df773b75e3c438aa..840a3987bf29af50b9b0dc8dd6c254eac3b36493 100755
(executable)
--- a/
include/classes/useragent.php-class
+++ b/
include/classes/useragent.php-class
@@
-402,6
+402,11
@@
class userAgent {
$this->version = $regs[1];
$this->bot = true;
}
+ elseif (preg_match('|heritrix/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'Heritrix';
+ $this->version = $regs[1];
+ $this->bot = true;
+ }
elseif (preg_match('|Slurp|', $this->uastring, $regs)) {
$this->brand = 'Slurp';
$this->version = null;