Author: playercd8
Description:
I used MediaWiki 1.12.0.(config lang to zh-tw)
but, sometime Abnormal URL or Bad Web-Crawler (Spider) , make to High CPU loading?
At my most recent one month, and found it.
Ex. (at 2009/3/1)
Top Process %CPU 7.3 httpd [player.idv.tw] [/prog/index.php?diff1687&oldid1668&titleJoomla_1.0.12%2B]
Top Process %CPU 6.6 httpd [player.idv.tw] [/prog/index.php?days1&from20080924164000&hideliu1&title]
Top Process %CPU 6.5 httpd [player.idv.tw] [/prog/index.php?actionhistory&titleGridView%E5%9C%A8%E8%B]
That is not correct URL?
I try to fix it.
Edit file index.php
Query string fields
$action = $wgRequest->getVal( 'action', 'view' );
$title = $wgRequest->getVal( 'title' );
Fix Bug?("%E9%A6%96%E9%A0%81" = "首頁", is name of mainpage ,at lang zh-tw)
if (is_null( $title ) or ($title == ""))
{
header("Location: index.php/%E9%A6%96%E9%A0%81"); exit;
}
Maybe you have a better way to repair it?
Maybe you can see my report, If you can see chinese.
Version: 1.12.x
Severity: enhancement