Changeset 174 for trunk/coverager/coverager.php
- Timestamp:
- 09/17/2006 02:14:51 AM (2 years ago)
- Files:
-
- 1 modified
-
trunk/coverager/coverager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager/coverager.php
r124 r174 62 62 $this->path = isset($_GET['path']) ? $_GET['path'] : ''; 63 63 $this->path = preg_replace('!\.{2,}!', '.', $this->path); 64 $this->path = preg_replace('![\\\\/]{2,}!', '/', $this->path); 64 $qsep = preg_quote(DIRECTORY_SEPARATOR, '!'); 65 $this->path = preg_replace("![\\\\$qsep]{2,}!", DIRECTORY_SEPARATOR, $this->path); 66 $this->path = preg_replace("!$qsep$!", '', $this->path); 65 67 if ($this->path == '/') { 66 68 $this->path = '';

