Index: /trunk/htdocs/diagnosis/index.php
===================================================================
--- /trunk/htdocs/diagnosis/index.php	(revision 1202)
+++ /trunk/htdocs/diagnosis/index.php	(revision 1203)
@@ -65,8 +65,8 @@
 	$iniDirectory = '';
 	if (preg_match('!<td class="v">(.*?\\.ini)!', $info, $m)) {
-		$loadedIni = $m[1];
+		$loadedIni = trim($m[1]);
 	}
 	else if (preg_match('!Configuration File \\(php.ini\\) Path *</td><td class="v">([^<]+)!', $info, $m)) {
-		$iniDirectory = $m[1];
+		$iniDirectory = trim($m[1]);
 	}
 	return array($loadedIni, $iniDirectory, $iniInfo);
@@ -81,5 +81,5 @@
 		echo sprintf(_T("Add extension=xcache.so (or xcache.dll) in %s"), $loadedIni);
 	}
-	else if (preg_match('!Configuration File \\(php.ini\\) Path *</td><td class="v">([^<]+)!', $loadedIni, $m)) {
+	else if ($iniDirectory) {
 		echo sprintf(_T("Please put a php.ini in %s and add extension=xcache.so (or xcache.dll) in it"), $iniDirectory);
 	}
