Always use a full filesystem path when including the FTP handler in PemFTP. This prevents other files in the includes directory being scanned/included accidentally.

See #29628


git-svn-id: https://develop.svn.wordpress.org/trunk@30310 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2014-11-12 03:05:31 +00:00
parent 4175d8a922
commit 14d164397a
1 changed files with 1 additions and 2 deletions

View File

@ -903,5 +903,4 @@ if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) {
$mod_sockets = extension_loaded( 'sockets' );
}
require_once "class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
?>
require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";