Changeset 2272 for branches

Show
Ignore:
Timestamp:
12/01/10 11:02:28 (18 months ago)
Author:
nick_ramsay
Message:

[1.5] Double dot removal in page names.

Files:
1 modified

Legend:

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

    r2177 r2272  
    172172                } 
    173173 
    174                 if ($page) { 
     174                if ($page) 
     175                { 
     176                        $page = str_replace('..', '', $page)); // prevents access outside the current folder 
    175177                        return rtrim($page, '/'); 
    176178                } 
     
    265267                } 
    266268 
     269                $page = str_replace('..', '', $page)); // prevents access outside the current folder 
    267270                $page = $page . '.php'; 
    268271