Changeset 240 for branches/1.0/coverager/coverager.php
- Timestamp:
- 10/11/2006 05:42:41 AM (2 years ago)
- Files:
-
- 1 modified
-
branches/1.0/coverager/coverager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/coverager/coverager.php
r33 r240 58 58 $this->path = isset($_GET['path']) ? $_GET['path'] : ''; 59 59 $this->path = preg_replace('!\.{2,}!', '.', $this->path); 60 $this->path = preg_replace('![\\\\/]{2,}!', '/', $this->path); 60 $qsep = preg_quote(DIRECTORY_SEPARATOR, '!'); 61 $this->path = preg_replace("![\\\\$qsep]{2,}!", DIRECTORY_SEPARATOR, $this->path); 62 $this->path = preg_replace("!$qsep$!", '', $this->path); 61 63 if ($this->path == '/') { 62 64 $this->path = ''; … … 114 116 list($tplfile, $tpllines, $tplcov) = $this->loadTplCov($fileinfo['cov'], substr($this->outpath, $this->datadir_len)); 115 117 if ($tplfile) { 116 $tplcov = sprint_cov($tpl info['tplcov'], $tpllines);118 $tplcov = sprint_cov($tplcov, $tpllines); 117 119 unset($tpllines); 118 120 }

