Skip to content

Commit

Permalink
lib/Horde/Vfs/Ssh2.php: Use square braces (not curly braces) for acce…
Browse files Browse the repository at this point in the history
…ssing string offsets.
  • Loading branch information
sunweaver authored and mrubinsk committed Oct 3, 2020
1 parent 1acfc74 commit 8f2aa85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Vfs/Ssh2.php
Expand Up @@ -870,7 +870,7 @@ protected function _wrap($remote)
if (!empty($this->_params['port'])) {
$wrapper .= ':' . $this->_params['port'];
}
if ($remote{0} != '/') {
if ($remote[0] != '/') {
$remote = $this->getCurrentDirectory() . '/' . $remote;
}
return $wrapper . $remote;
Expand Down

0 comments on commit 8f2aa85

Please sign in to comment.