Added CGI::Simple to UserAgent.pm.

master
Jag Talon 2013-02-18 20:32:58 -05:00
parent 5f00a08e07
commit b2aa1749cd
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ handle query_lc => sub {
# Return if it doesn't exist in the dictionary.
return unless exists $user_agent_qr{$_};
my $q = new CGI::Simple;
my $user_agent = $q->user_agent() || '';
return $user_agent;
};