Changeset 255 for branches/1.1/coverager/coverager.php
- Timestamp:
- 2006-10-17T20:30:41+02:00 (7 years ago)
- Location:
- branches/1.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
coverager/coverager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1
-
branches/1.1/coverager/coverager.php
r124 r255 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 = ''; … … 118 120 list($tplfile, $tpllines, $tplcov) = $this->loadTplCov($fileinfo['cov'], substr($this->outpath, $this->datadir_len)); 119 121 if ($tplfile) { 120 $tplcov = sprint_cov($tpl info['tplcov'], $tpllines);122 $tplcov = sprint_cov($tplcov, $tpllines); 121 123 unset($tpllines); 122 124 }
Note: See TracChangeset
for help on using the changeset viewer.

