dont allow filemanger to go outside /home

This commit is contained in:
Ralf Becker 2004-08-01 18:29:50 +00:00
parent d4167b6c44
commit c3c37e2798

View File

@ -985,8 +985,8 @@
$toolbar.='
<td><img alt="spacer" src="'.$GLOBALS['phpgw']->common->image('filemanager','spacer').'" height="27" width="1"></td>';
// go up icon when we're not at the top
if($this->path != '/')
// go up icon when we're not at the top, dont allow to go outside /home = fakebase
if($this->path != '/' && $this->path != $this->bo->fakebase)
{
$link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->lesspath);
$toolbar.=$this->buttonImage($link,'up',lang('go up'));