Changeset 2279 for branches

Show
Ignore:
Timestamp:
12/04/10 00:06:43 (18 months ago)
Author:
nick_ramsay
Message:

[1.4.2] Double-dot fix in PageHandling.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.4/libs/PageHandling.php

    r2214 r2279  
    168168                 
    169169                if ($page) { 
     170                        $page = str_replace('..', '', $page); // prevents access outside the current folder 
    170171                        $page = rtrim($page, '/'); 
    171172                        return $page; 
     
    254255                }  
    255256                 
     257                $page = str_replace('..', '', $page); // prevents access outside the current folder 
    256258                $page = $page . '.php'; 
    257259