Author: blarkin
Description:
I am running PHP 5.2.10 on IIS 6 on Windows Server 2003 but I believe it would affect anyone. The following bug was found while working with Mediawiki v1.15.1. If you attempt to run mediawiki's dumpBackup.php job, it generates the following error:
"Notice: Undefined index: HTTP_USER_AGENT in <snip>extensions\FCKeditor\fckeditor\fckeditor_php5.php on line 37"
The file in question attempts to access $_SERVER['HTTP_USER_AGENT'] without checking to see if it is set. To work around this, I modified fckeditor_php5.php to:
<code>
function FCKeditor_IsCompatibleBrowser()
{
$sAgent = ""; if (isset($_SERVER)) { if (isset$_SERVER['HTTP_USER_AGENT'])) { $sAgent = $_SERVER['HTTP_USER_AGENT']; } } else { ...
</code>
Version: unspecified
Severity: enhancement