Opened 12 years ago
Closed 12 years ago
#29405 closed defect (bug) (fixed)
filesystem ssh2 move function parameter bug
| Reported by: | nobleclem | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Filesystem API | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch commit 4.1-early |
| Cc: | Focuses: |
Description
wp-admin/includes/class-wp-filesystem-ssh2.php line 256
The first parameter of ssh2_sftp_rename() is incorrect.
It is passing "$this->link" instead of the correct "$this->sftp_link" as the other ssh2_sftp_* calls are passing.
Attachments (1)
Change History (5)
#2
@
12 years ago
- Keywords commit 4.1-early added
- Milestone Awaiting Review → Future Release
- Version 3.9.2 → 2.8
Appears to be missed in [8852] and [11063].
The first parameter passed to ssh2_sftp_rename() should be an SSH2 SFTP resource opened by ssh2_sftp(), which is $this->sftp_link, not $this->link. Looks good to me.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch