mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
dont allow filemanger to go outside /home
This commit is contained in:
parent
d4167b6c44
commit
c3c37e2798
@ -985,8 +985,8 @@
|
|||||||
$toolbar.='
|
$toolbar.='
|
||||||
<td><img alt="spacer" src="'.$GLOBALS['phpgw']->common->image('filemanager','spacer').'" height="27" width="1"></td>';
|
<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
|
// go up icon when we're not at the top, dont allow to go outside /home = fakebase
|
||||||
if($this->path != '/')
|
if($this->path != '/' && $this->path != $this->bo->fakebase)
|
||||||
{
|
{
|
||||||
$link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->lesspath);
|
$link=$this->encode_href('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->lesspath);
|
||||||
$toolbar.=$this->buttonImage($link,'up',lang('go up'));
|
$toolbar.=$this->buttonImage($link,'up',lang('go up'));
|
||||||
|
Loading…
Reference in New Issue
Block a user