From 14d164397a766ef658d49ef25f433c7eab46693c Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 12 Nov 2014 03:05:31 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-ftp.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-ftp.php b/src/wp-admin/includes/class-ftp.php index bee9fa1f36..171420e3fb 100644 --- a/src/wp-admin/includes/class-ftp.php +++ b/src/wp-admin/includes/class-ftp.php @@ -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";