Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the WWW-RobotRules CPAN distribution.

Report information
The Basics
Id: 116806
Status: new
Priority: 0/
Queue: WWW-RobotRules

Owner: Nobody in particular
Requestors: vgolubev [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Doesn't work with slashes (/) in User agent names
Date: Tue, 09 Aug 2016 17:52:04 +0300
To: bug-WWW-RobotRules [...]
From: Vitaly Golubev <vgolubev [...]>
Download (untitled) / with headers
text/plain 576b
Hello version: 6.02 Doesn't work with slashes (/) in User agent names - it looks that the problem is in is_me function. According existing comments arguments should be swapped for index function. It started to work after this correction. sub is_me { my($self, $ua_line) = @_; my $me = $self->agent; # See whether my short-name is a substring of the # "User-Agent: ..." line that we were passed: #wrong order if(index(lc($me), lc($ua_line)) >= 0) { if(index(lc($ua_line), lc($me)) >= 0) { return 1; } else { return ''; } }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to