From 3896f64ba5a96dac8c26df15c5c6d3005a2e3c45 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 2 Mar 2009 02:33:15 +0000 Subject: [PATCH] Removed the major version number from the useragent match of the Ichiro bot, it has been upgraded git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9354 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/database_update.php | 5 +++++ phpBB/install/install_install.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 4f96966a81..f805d19d38 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -912,6 +912,11 @@ function change_database_data(&$no_updates, $version) } $db->sql_freeresult($result); + $sql = 'UPDATE ' . BOTS_TABLE . " + SET bot_agent = 'ichiro/' + WHERE bot_agent = 'ichiro/2'"; + _sql($sql, $errored, $error_ary); + $no_updates = false; break; diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 55d1344008..adb0fb9623 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -2116,7 +2116,7 @@ class install_install extends module 'Heritrix [Crawler]' => array('heritrix/1.', ''), 'IBM Research [Bot]' => array('ibm.com/cs/crawler', ''), 'ICCrawler - ICjobs' => array('ICCrawler - ICjobs', ''), - 'ichiro [Crawler]' => array('ichiro/2', ''), + 'ichiro [Crawler]' => array('ichiro/', ''), 'Majestic-12 [Bot]' => array('MJ12bot/', ''), 'Metager [Bot]' => array('MetagerBot/', ''), 'MSN NewsBlogs' => array('msnbot-NewsBlogs/', ''),