- Timestamp:
- 12/01/10 11:02:28 (18 months ago)
- Files:
-
- 1 modified
-
branches/1.5/libs/PageHandling.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/libs/PageHandling.php
r2177 r2272 172 172 } 173 173 174 if ($page) { 174 if ($page) 175 { 176 $page = str_replace('..', '', $page)); // prevents access outside the current folder 175 177 return rtrim($page, '/'); 176 178 } … … 265 267 } 266 268 269 $page = str_replace('..', '', $page)); // prevents access outside the current folder 267 270 $page = $page . '.php'; 268 271