Index: /trunk/coverager/coverager.php
===================================================================
--- /trunk/coverager/coverager.php	(revision 173)
+++ /trunk/coverager/coverager.php	(revision 174)
@@ -62,5 +62,7 @@
 		$this->path = isset($_GET['path']) ? $_GET['path'] : '';
 		$this->path = preg_replace('!\.{2,}!', '.', $this->path);
-		$this->path = preg_replace('![\\\\/]{2,}!', '/', $this->path);
+		$qsep = preg_quote(DIRECTORY_SEPARATOR, '!');
+		$this->path = preg_replace("![\\\\$qsep]{2,}!", DIRECTORY_SEPARATOR, $this->path);
+		$this->path = preg_replace("!$qsep$!", '', $this->path);
 		if ($this->path == '/') {
 			$this->path = '';
