[wp-trac] [WordPress Trac] #33919: ssh2/sftp doesn't work in chrooted environments, FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR not available

WordPress Trac noreply at wordpress.org
Fri Sep 18 16:52:06 UTC 2015


#33919: ssh2/sftp doesn't work in chrooted environments, FTP_BASE, FTP_CONTENT_DIR,
FTP_PLUGIN_DIR not available
----------------------------+------------------------------
 Reporter:  talatorre       |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:  4.3
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by aberbenni):

 "patch"

 use:

 {{{
 public function find_folder( $folder ) {
                 if ( isset( $this->cache[ $folder ] ) )
                         return $this->cache[ $folder ];

                 if ( stripos($this->method, 'ftp') !== false ||
 stripos($this->method, 'ssh2') !== false ) {
 }}}

 isntead of


 {{{
 public function find_folder( $folder ) {
                 if ( isset( $this->cache[ $folder ] ) )
                         return $this->cache[ $folder ];

                 if ( stripos($this->method, 'ftp') !== false ) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33919#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list