[wp-trac] [WordPress Trac] #33196: ssh2_auth_pubkey_file() call can cause a fatal error because of non-existing key error in $this->options['password']
WordPress Trac
noreply at wordpress.org
Thu Jun 29 17:03:35 UTC 2023
#33196: ssh2_auth_pubkey_file() call can cause a fatal error because of non-
existing key error in $this->options['password']
------------------------------+-----------------------------
Reporter: ehsanakhgari | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Filesystem API | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"56111" 56111]:
{{{
#!CommitTicketReference repository="" revision="56111"
Filesystem API: Define password as `null` if not set when using SSH2 with
public/private keys.
This resolves an `Undefined array key "password"` PHP warning in
`WP_Filesystem_SSH2::connect()` when using public/private key
authentication, in which case providing a password is optional.
Follow-up to [8865].
Props J-Dill, costdev, ehsanakhgari, dd32.
Fixes #33196.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33196#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list