Skip to content

Commit

Permalink
[jan] Allow to specify root folder ('/') as 'vfsroot' parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 14, 2016
1 parent 44a0839 commit 9258ee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions framework/Vfs/lib/Horde/Vfs/File.php
Expand Up @@ -61,6 +61,9 @@ public function __construct($params = array())
((substr($this->_params['vfsroot'], -1) == '/') ||
(substr($this->_params['vfsroot'], -1) == '\\'))) {
$this->_params['vfsroot'] = substr($this->_params['vfsroot'], 0, strlen($this->_params['vfsroot']) - 1);
if (!strlen($this->_params['vfsroot'])) {
$this->_params['vfsroot'] = '/';
}
}

$this->_connect();
Expand Down
4 changes: 2 additions & 2 deletions framework/Vfs/package.xml
Expand Up @@ -38,7 +38,7 @@ Reading, writing and listing of files are all supported.</description>
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Allow to specify root folder (&apos;/&apos;) as &apos;vfsroot&apos; parameter.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -1274,7 +1274,7 @@ Added a class for providing garbage collection; removed all Horde dependancies.
<date>2016-03-21</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Allow to specify root folder (&apos;/&apos;) as &apos;vfsroot&apos; parameter.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 9258ee2

Please sign in to comment.