mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
- re-add script_path for "strange configurations" to let them force the generated urls correctly
- show rank title if no rank image present in memberlist - other fixes. git-svn-id: file:///svn/phpbb/trunk@6730 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -359,9 +359,12 @@ class ftp extends transfer
|
||||
*/
|
||||
function _chdir($dir = '')
|
||||
{
|
||||
if (substr($dir, -1, 1) == '/')
|
||||
if ($dir && $dir !== '/')
|
||||
{
|
||||
$dir = substr($dir, 0, -1);
|
||||
if (substr($dir, -1, 1) == '/')
|
||||
{
|
||||
$dir = substr($dir, 0, -1);
|
||||
}
|
||||
}
|
||||
|
||||
return @ftp_chdir($this->connection, $dir);
|
||||
@@ -585,9 +588,12 @@ class ftp_fsock extends transfer
|
||||
*/
|
||||
function _chdir($dir = '')
|
||||
{
|
||||
if (substr($dir, -1, 1) == '/')
|
||||
if ($dir && $dir !== '/')
|
||||
{
|
||||
$dir = substr($dir, 0, -1);
|
||||
if (substr($dir, -1, 1) == '/')
|
||||
{
|
||||
$dir = substr($dir, 0, -1);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->_send_command('CWD', $dir);
|
||||
|
Reference in New Issue
Block a user