mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 04:05:15 +00:00
SFTP: add disableArbitraryLengthPackets()
This commit is contained in:
parent
20500123e5
commit
fc40727cfb
@ -718,6 +718,16 @@ class Net_SFTP extends Net_SSH2
|
|||||||
$this->canonicalize_paths = true;
|
$this->canonicalize_paths = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable path canonicalization
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function disablePathCanonicalization()
|
||||||
|
{
|
||||||
|
$this->canonicalize_paths = false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable arbitrary length packets
|
* Enable arbitrary length packets
|
||||||
*
|
*
|
||||||
@ -729,13 +739,13 @@ class Net_SFTP extends Net_SSH2
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable path canonicalization
|
* Disable arbitrary length packets
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function disablePathCanonicalization()
|
function disableArbitraryLengthPackets()
|
||||||
{
|
{
|
||||||
$this->canonicalize_paths = false;
|
$this->allow_arbitrary_length_packets = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user