diff --git a/lib/HTTP/BrowserDetect.pm b/lib/HTTP/BrowserDetect.pm index de85abd..3e4a685 100755 --- a/lib/HTTP/BrowserDetect.pm +++ b/lib/HTTP/BrowserDetect.pm @@ -958,8 +958,8 @@ $self->{robot_fragment} = "search"; $robot_tests->{robot} = 'unknown'; } - elsif ( $self->{user_agent} =~ /([\w \/\.\-]+)[ \;\(\)]*\+http\:/i ) - { + elsif ( $self->{user_agent} =~ /([\w \/\.\-]+)[ \;\(\)]*\+http\:/i ) { + # Something followed by +http $self->{robot_string} = $1; $self->{robot_string} =~ s/^ *(.+?)[ \;\(\)]*$/$1/;