• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
googlebot detection problem

#1
[eluser]Unknown[/eluser]
User_agent.php in sys/libraries doesn't work with the googlebot user agent string:

Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

It finds the Mozilla/5.0 first and sets the user agent to browser.

Change the _compile_data() function to:
foreach (array('_set_robot', '_set_browser', '_set_mobile') as $function)

instead of:
foreach (array('_set_browser', '_set_robot', '_set_mobile') as $function)

to fix it.


Messages In This Thread
googlebot detection problem - by El Forum - 12-01-2008, 10:34 AM
googlebot detection problem - by El Forum - 12-01-2008, 12:07 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.